Free / OpenSource.NET Diff Generator?

I'm looking for a free library that can take two lines and produce a diff like the difference you see when you edit the changes here on SO.

I hope one exists, as this is a trivial part of the application I am working on and I would not want to waste time reinventing the wheel.

Any suggestions?

+1


source to share


3 answers


I just released a DiffPlex project that does exactly what you ask.



+2


source


You can make an MD5 hash of both files to determine if they are identical. The SO style changelog will be a little more intense.

Check out the source code for this diff tool, which can get you going in the right direction.



http://dotnet.jku.at/applications/Diff/Src.aspx

+1


source


Surprisingly, I found one implementation that can give you the same functionality as SO edit. codeproject I will use it too and hope it helps other people too.

+1


source







All Articles