Popular recipes tagged "wrap" and "macro" but not "linux" and "word"http://code.activestate.com/recipes/tags/-linux+wrap-word+macro/2011-02-02T23:28:37-08:00ActiveState Code RecipesKomodo JavaScript Macro - wrap the current word under the cursor (JavaScript)
2011-02-02T23:28:37-08:00Todd Whitemanhttp://code.activestate.com/recipes/users/2666241/http://code.activestate.com/recipes/577561-komodo-javascript-macro-wrap-the-current-word-unde/
<p style="color: grey">
JavaScript
recipe 577561
by <a href="/recipes/users/2666241/">Todd Whiteman</a>
(<a href="/recipes/tags/komodo/">komodo</a>, <a href="/recipes/tags/macro/">macro</a>, <a href="/recipes/tags/text/">text</a>, <a href="/recipes/tags/toddw/">toddw</a>, <a href="/recipes/tags/wrap/">wrap</a>).
</p>
<p>A <a href="http://www.activestate.com/komodo">Komodo</a> JavaScript macro that can be used to wrap the current word under the cursor position (or current selection) with arbitrary text.</p>
<p>For example, if I'm editing a HTML file and have the selected text "This is my heading", I can quickly use this macro to wrap this text into "<h1>This is my heading</h1>".</p>