
There’s an excellent library from Google, called diff_match_patch that does a really good job of analyzing the text and producing the diffs in a programatic manner. However, it lacks the sauce to visually present it to the user.
So I wrote a jQuery library which is a wrapper around Google’s library and makes it trivial to wow your users.