From: Michael D. B. <be...@ya...> - 2003-04-17 14:25:41
|
I made some patches to support inline diff highlighting. I moved the patches I made to the 3.09 version from accurev.com to the latest version in cvs (3.09 + the macosx aqua changes?). Attached is my patched version. I implemented two algorithms for performing inline diffs: (1) byte-by-byte - good for large text files with diffs corresponding to column numbers. I use this for detailed comparison of images represented as text files. (2) recursive pattern matching based on Ratcliff/Obershelp. This finds the longest common substring, assumes this is an anchor, and recursively repeats for the remaining left and right substrings. I revised it a couple of times to make it more efficient, and it is not too bad. This required adding to, and changing, the color/font scheme in the text windows. I also added some gui changes to support the enabling of either inline diff algorithm. I posted the patch to the sourceforge tkdiff patches area ... http://sourceforge.net/tracker/index.php?func=detail&aid=723135&group_id=64960&atid=509274 Feedback? Mike. __________________________________________________ Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo http://search.yahoo.com |