Hi All,

A small blog post lined up for enabling the ContextDiffProvider. The
last sentence contains links to the jspwiki.properties documentation and
setting the custom properties file, respectively.

*****

Display JSPWiki page differences word-by-word

By default, JSPWiki displays differences between page versions
line-by-line. While serviceable for general use, this is often not
fine-grained enough to easily identify specific changes – especially in
pages with lots of content.

In JSPWiki this setting is known as the difference provider. You can
configure alternative difference providers, one of which is the
ContextualDiffProvider. The ContextualDiffProvider enables displaying of
page version differences on a word-by-word basis.

Here's an example of page differences with the default
TraditionalDiffProvider enabled (click to enlarge):

jspwiki-contextualdiff-1.png

Note that while only one word and one character has changed, the entire
sentence is highlighted. By comparison here are the same changes with
the ContextualDiffProvider enabled instead (click to enlarge):

jspwiki-contextualdiff-2.png

You can find more information on JSPWiki's difference providers here,
and you can make the setting in your jspwiki-custom.properties file.


-- 
Dave Koelmeyer
http://blog.davekoelmeyer.co.nz
GPG Key ID: 0x238BFF87  

Reply via email to