title: How to display word differences using c#?
body: <p>I would like to show the differences between two blocks of text.  Rather than comparing lines of text or individual characters, I would like to just compare words separated by specified characters (<code>'\n'</code>, <code>' '</code>, <code>'\t'</code> for example).  My main reasoning for this is that the block of text that I'll be comparing generally doesn't have many line breaks in it and letter comparisons can be hard to follow.</p>
  <p>I've come across the following <a href="http://www.mathertel.de/Diff/" rel="nofollow noreferrer">O(ND) logic in C#</a> for comparing lines and characters, but I'm sort of at a loss for how to modify it to compare words.</p>
  <p>In addition, I would like to keep track of the separators between words and make sure they're included with the diff.  So if space is replaced by a hard return, I would like that to come up as a diff.</p>
  <p>I'm using Asp.net  to display the entire block of text including the deleted original text and added new text (both will be highlighted to show that they were deleted/added).  A solution that works with those technologies would be appreciated.</p>
  <p>Any advice on how to accomplish this is appreciated?
  Thanks!</p>