This is MooTools modification of the Javascript Diff Algorihm by By John Resig (

It is realesed under the MIT license

To use this you have to make an html webpage with the two texts to be compared The first text must have the id "text1" and the second "text2".

The diff function is triggered by a button named with the id "b".

Download the files.

Include MooTools in your page and then include mooDiff.js

The Demo can be found at: