Diff.Match.Patch
Diff.Match.Patch copied to clipboard
Need sample for pretty printing
I'd like to use this great library to help with failing unit tests comparing expected/actual string values.
I'd like the diff to be pretty printed pretty much like github shows with each line prefixed with + and - and few lines of context around each diff.
I figured out how to use the library to get the list of diff but couldn't figure out how to implement the appropriate pretty-printing to do what I described.
I'd appreciate minimal code sample to do that!