diff

google-diff-match-patch - Google Code
http://code.google.com/p/google-diff-match-patch/

かなりよい感じ。