Diff, Match and Patch Library code.google.com/p/google-diff-match-patch/ Neil Fraser

This library is currently available in seven different ports, all using the same API. Every version includes a full set of unit tests.

C++:

C#:

Dart:

Java:

JavaScript:

Lua:

Objective C:

Python:

Demos: