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

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

[{'answer_id': 65230, 'author': 'eladv', 'author_id': 7314, 'author_profile': 'https://Stackoverflow.com/users/7314', 'pm_score': 3, 'selected': False, 'text': '<p>Check out <a href="http://en.wikipedia.org/wiki/Diff" rel="noreferrer">diff</a>. Here it is <a href="http://www.gnu.org/software/diffutils/diffutils.html" rel="noreferrer">in the gnu project</a> (open source, of course), and many more links to implementations are found in the wikipedia article. A comparison of different such programs is found <a href="http://en.wikipedia.org/wiki/Comparison_of_file_comparison_tools" rel="noreferrer">here</a>.</p>\n'}, {'answer_id': 65311, 'author': 'cfeduke', 'author_id': 5645, 'author_profile': 'https://Stackoverflow.com/users/5645', 'pm_score': 4, 'selected': False, 'text': '<p>There is <a href="http://www.menees.com/Diff.Net.htm" rel="nofollow noreferrer">Menees Diff</a> 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.</p>\n'}, {'answer_id': 2176101, 'author': 'Tarek Mohamed', 'author_id': 263429, 'author_profile': 'https://Stackoverflow.com/users/263429', 'pm_score': 3, 'selected': False, 'text': '<p>check this link \n"good line by line Diff Algorithm "\n<a href="http://www.codeproject.com/KB/recipes/diffengine.aspx" rel="noreferrer">http://www.codeproject.com/KB/recipes/diffengine.aspx</a></p>\n'}, {'answer_id': 2887469, 'author': 'Goran', 'author_id': 23164, 'author_profile': 'https://Stackoverflow.com/users/23164', 'pm_score': 4, 'selected': False, 'text': '<p>There\'s also a c# port of Google\'s (Neil Fraser) <a href="http://code.google.com/p/google-diff-match-patch/" rel="noreferrer">diff, match and patch</a>.</p>\n'}, {'answer_id': 5012364, 'author': 'Robert Swift', 'author_id': 618998, 'author_profile': 'https://Stackoverflow.com/users/618998', 'pm_score': 3, 'selected': False, 'text': '<p>How about this one? : <a href="https://github.com/mmanela/diffplex" rel="nofollow" title="DIFFPLEX">DIFFPLEX</a></p>\n'}]
['https://Stackoverflow.com/questions/65199', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1368/']