[pmwiki-users] Better page diff?

Patrick R. Michaud pmichaud at pobox.com
Wed Nov 30 08:08:43 CST 2005


On Wed, Nov 30, 2005 at 09:34:50AM +0000, Anno wrote:
> Curently the page history shows a comparison between each 2 lines of 2 versions,
> but without any highlightning. If the lines are long, it is very difficult to
> see what actually changed.
> Some highlighting, similar to
> 
> http://phpwiki.sourceforge.net/phpwiki/HomePage?
> action=diff&previous=minor&version=48
> 
> would be useful.

Sure, but this is actually difficult to do well.  (It's even difficult
to do it poorly.)  The problem is being able to highlight the changes
in something like:

    old:  This is a sentence for demonstration purposes.

    new:  This is an ''example sentence for demonstration'' purposes.

Somehow the highlighting algorithm has to recognize that "sentence for" 
in the second version isn't the same as the "sentence for" in the 
first version (even though "This is" and "purposes." are the same in
both versions).

If someone can give me a relatively easy approach to detecting the
differences I might see about implementing it.  But it hasn't
traditionally been a high priority (this issue is PITS 00571).

Pm




More information about the pmwiki-users mailing list