inc/diff.php
Utility for creating diffs of two revisions. Uses Paul Butlers Simple Diff Algorithm. Used in history.
Functions
diff($old,$new)
The algorithm itself
htmlDiff($old, $new)
wrapper for the diff command, it takes two strings and returns the differences in HTML. The tags used are ins and del which can easily be styled with CSS.