26

Are there any open source algorithms in c# that solve the problem of creating a difference between two text files?

It would be super cool if it had some way of highlighting what exact areas where changed in the text document also.

0

5 Answers 5

16

There's also a c# port of Google's (Neil Fraser) diff, match and patch.

0
12

There is Menees Diff which will provide you with a C# diff implementation. The source code is included. I've used it in the past with good success wrapping it in my own implemenation.

1
  • link no longer outdated
    – cfeduke
    Feb 16, 2019 at 17:54
9

How about this one? : DIFFPLEX

0
7

Check out diff. Here it is in the gnu project (open source, of course), and many more links to implementations are found in the wikipedia article. A comparison of different such programs is found here.

1
  • 1
    This is not a C# implementation
    – hultqvist
    Mar 19, 2013 at 8:08
6

check this link "good line by line Diff Algorithm " http://www.codeproject.com/KB/recipes/diffengine.aspx

0

Not the answer you're looking for? Browse other questions tagged or ask your own question.