Esempio n. 1
0
 /// <summary>
 /// Creates an html report
 /// </summary>
 /// <param name="dmp">The diff match path utility</param>
 /// <param name="baseFile">The file used as base to compare</param>
 /// <param name="compareFile">The file to compare with</param>
 /// <param name="baseFileHtmlResult">The diff founds in the base file as html encoding</param>
 /// <param name="compareFileHtmlResult">The diff founds in the compare file as html encoding</param>
 public static void CreateHtmlReport(this diff_match_patch dmp, FileInfo baseFile, FileInfo compareFile, out String baseFileHtmlResult, out String compareFileHtmlResult)
 {
     baseFileHtmlResult    = dmp.diff_prettyHtml(dmp.CompareFiles(baseFile.FullName, compareFile.FullName)).Replace("\r&para;", "");
     compareFileHtmlResult = dmp.diff_prettyHtml(dmp.CompareFiles(compareFile.FullName, baseFile.FullName)).Replace("\r&para;", "");
 }