There are lots of ways of doing comparisons of 2 lots of text. Although there isn’t anything native in FileMaker to do anything like this. We wanted to do something that did a visual comparison of 2 scripts in BaseElements, so you could see changes before and after when a script was modified.

After some hunting around, we came across some javascript functions that can highlight differences in text within a website, and we’ve integrated one of them into the webviewer so you can do the same thing inside a FileMaker solution.

This example requires FileMaker Pro 8.5 for the webviewer, but doesn’t require any plugins or internet access to work, so is quite a neat way of doing a visual comparison in FileMaker Pro.

The original code for this is from : http://code.google.com/p/google-diff-match-patch/