I’m looking for a PHP library that will provide me inline diffing between two strings, like this: http://grabby.info/dfe2835f606443757ae7c18404e71781.png.
I’m using xdiff currently, but it’s crossing out the entire line when a single word changes, and that’s not what I want.
Any suggestions?
I used xdiff for this to highlight changes in the text of an html page. The basic workflow was:
\nafter the closing>)\nas the separator, so now all tags and words are onseparatelines[xdiff_string_diff()][1]not particularly efficient, and very top-heavy on extra wrapping tags if you’ve got a long sequence of ads/deletions, but it did the job.