Hi All,

Urgh, it certainly wasn't the idea to set up a blog and then let it
stagnate – please review the below and let me if it's good to publish.
I'll aim to push several short and sweet blog entries similar to this 
(focusing on feature highlights) on a regular basis going forward.

*****

JSPWiki feature highlight: Smart Typing Pairs

A great new feature in JSPWiki's Haddock editor is Smart Typing Pairs.
When enabled, certain characters when typed will automatically be
balanced with their closing counterparts. Example characters include
quotation marks, parentheses, and curly and square brackets. This saves
time when entering content, as one does not have to manually close these
characters – the Haddock editor will do it for you.

You can enable Smart Typing Pairs in the Haddock editor's settings
drop-down menu (click to enlarge):

jspwiki-smarttypingpairs-4.png

The preference will be saved, so it's a one-time setting to make.

Now, try entering a square bracket or double quotation mark, and you'll
see the editor will close the character for you (click to enlarge):

jspwiki-smarttypingpairs-5.png

When creating (for example) links with Smart Typing Pairs enabled, one
only has to enter the opening square bracket ("[") and then paste the
desired address – Haddock will take care of the rest.

You can also select existing content and enter the relevant opening
character, which will automatically wrap the selection in the correct
associated closing character. In the following example we wish to add
double quotation marks to the 'Haddock Template' text (click to enlarge):

jspwiki-smarttypingpairs-1.png

First select the text (click to enlarge):

jspwiki-smarttypingpairs-2.png

And now simply enter Shift+" on the keyboard to enter a double quotation
mark. Haddock automatically adds the associated closing pair around the
selection (click to enlarge):

jspwiki-smarttypingpairs-3.png

For more information please check out the Haddock Editor documentation.

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

Reply via email to