google-diff-match-patch - Project Hosting on Google Code
"The Diff Match and Patch libraries offer robust algorithms to perform the operations required for synchronizing plain text. "