Apache JSPWiki

Monday August 01, 2016

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 menu (click to enlarge):

jspwiki-smarttypingpairs-4.png

The preference will be remembered, so it's a one-time setting.

Now enter 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 character around the selection (click to enlarge):

jspwiki-smarttypingpairs-3.png

For more information please check out the Haddock Editor documentation.




Comments:

Post a Comment:
Comments are closed for this entry.

Calendar

Search

Hot Blogs (today's hits)

Tag Cloud

Categories

Feeds

Links

Navigation