8

I'm looking for an open-source diff tool that I can integrate in my C# code.

I am comparing two strings of text and want to render my output to look similar to the Stack Exchange diff tool:

inline:

enter image description here

side-by-side:

enter image description here

Stack Exchange uses Beyond Compare, which seems to do a very nice job comparing changes, but I am looking for something that is free.

I found a few posts on Stack Overflow talking about diff tool recommendations, yet these questions are off topic for Stack Overflow and were closed, so the answers given are very likely not maintained. Also, all these questions were posted a few years ago, and so the technology suggested may no longer be the best software available.

Here are the SO questions for reference:

These are some of the suggestions posted, yet I don't know if they are still recommended or if better technology now exists:

  • Would you mind telling us what you eventually selected? – RenniePet Feb 3 '18 at 15:01
  • 1
    @RenniePet I think I ended up using a version of the Google Diff, Match, Patch library, however, I have since moved on from that job and can't check. I do remember though, I wasn't thrilled with the comparison algorithm results of whatever code I ended up with, and that is why I never added it as an answer. Although I am no longer looking for a solution, it would be nice if someone can still suggest a tool they use that works well, so others can refer to this question as a reference in the future. – Tot Zam Feb 4 '18 at 16:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.