diff --git a/csharp/DiffMatchPatch.cs b/csharp/DiffMatchPatch.cs index 6e196418..d67eb2bb 100644 --- a/csharp/DiffMatchPatch.cs +++ b/csharp/DiffMatchPatch.cs @@ -1334,18 +1334,18 @@ public int diff_xIndex(List diffs, int loc) { * @param diffs List of Diff objects. * @return HTML representation. */ - public string diff_prettyHtml(List diffs) { + public string diff_prettyHtml(List diffs, string insertColor="e6ffe6", string deleteColor="ffe6e6") { StringBuilder html = new StringBuilder(); foreach (Diff aDiff in diffs) { string text = aDiff.text.Replace("&", "&").Replace("<", "<") .Replace(">", ">").Replace("\n", "¶
"); switch (aDiff.operation) { case Operation.INSERT: - html.Append("").Append(text) + html.Append($"").Append(text) .Append(""); break; case Operation.DELETE: - html.Append("").Append(text) + html.Append($"").Append(text) .Append(""); break; case Operation.EQUAL: