Top-rated recipes tagged "brackets"http://code.activestate.com/recipes/tags/brackets/top/2013-06-24T13:38:55-07:00ActiveState Code RecipesKomodo JS Macro: smart quotes and smart braces (JavaScript)
2013-06-24T13:38:55-07:00Todd Whitemanhttp://code.activestate.com/recipes/users/2666241/http://code.activestate.com/recipes/577790-komodo-js-macro-smart-quotes-and-smart-braces/
<p style="color: grey">
JavaScript
recipe 577790
by <a href="/recipes/users/2666241/">Todd Whiteman</a>
(<a href="/recipes/tags/braces/">braces</a>, <a href="/recipes/tags/brackets/">brackets</a>, <a href="/recipes/tags/komodo/">komodo</a>, <a href="/recipes/tags/macro/">macro</a>, <a href="/recipes/tags/scintilla/">scintilla</a>, <a href="/recipes/tags/smart/">smart</a>, <a href="/recipes/tags/toddw/">toddw</a>).
Revision 5.
</p>
<p>With this macro, you can make a text/word selection, then press one of ", ', (, [ or { and the matching set of quotes/braces will be added around the selection.</p>
<p>Example (where | denotes the selection):
This is |myselectedword|.
then pressing "{" you'll get:
This is {myselectedword}.</p>