Popular recipes tagged "wrap" but not "word"http://code.activestate.com/recipes/tags/wrap-word/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>
Align text filter (Python)
2010-03-09T07:34:43-08:00Denis Barmenkovhttp://code.activestate.com/recipes/users/57155/http://code.activestate.com/recipes/577093-align-text-filter/
<p style="color: grey">
Python
recipe 577093
by <a href="/recipes/users/57155/">Denis Barmenkov</a>
(<a href="/recipes/tags/align/">align</a>, <a href="/recipes/tags/pipe/">pipe</a>, <a href="/recipes/tags/text/">text</a>, <a href="/recipes/tags/wrap/">wrap</a>).
Revision 4.
</p>
<p>Python 2.3 module textwrap can justify text in three modes: left/right/center.
Sometimes 'align' mode become more useful.</p>