You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here's the code for an action which makes handling of parentheses, quotes etc.
more comfortable:
Right now, if you type some code in JSyntaxPane, PairAction will neatly add the
closing character of a pair when you type the opening character.
However, there's no special handling yet for typing the closing character -
e.g. when you're typing code it often happens to me that I enter the closing
parenthesis because I forgot that it had been added automatically, so I end up
with two closing parentheses...
The new action takes care of that: when the action determines that the
character you typed is the closing character of such a pair, and the character
at the caret position is that same character, it simply skip over that
character.
I attached the code for the new action and a patch for the
(JavaSyntaxKit-)config.properties I used to test it.
Cheers,
Martin
Original issue reported on code.google.com by martin.z...@consol.de on 8 Jul 2010 at 10:03
Original issue reported on code.google.com by
martin.z...@consol.de
on 8 Jul 2010 at 10:03Attachments:
The text was updated successfully, but these errors were encountered: