Apache JSPWiki

Monday August 08, 2016

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

Clicking on the blue highlighted double arrows to the left or right of a change will jump to the previous or next change respectively (click to enlarge):

jspwiki-contextualdiff-3.png

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


Comments:

Post a Comment:
Comments are closed for this entry.

Calendar

Search

Hot Blogs (today's hits)

Tag Cloud

Categories

Feeds

Links

Navigation