Is there anything available for .NET to get the differences on two lines?
4 answers
From your question, you seem to have given up on using an existing program and decided to write your own because you think existing programs cannot show line differences.
However, WinMerge can display inline differences.

Does this suit your needs? Or do you need to be a .NET component for some reason?
+2
a source to share
You probably want to explore the Levenshtein distance or . For a C # implementation of Levenshtein's algorithm see here (if you're really interested in writing this yourself).
This question asks for something similar, with the accepted answer pointing to a bunch of diff related projects . There is a lot of good code written there that is definitely worth looking at.
+1
a source to share