- Code: Select all
this
is
a
test
And select all the lines and run the function you'll get:
- Code: Select all
<li|>this</li|>
<li|>is</li|>
<li|>a</li|>
<li|>test</li|>
with all the <li>s selected ready for you to overtype with whatever tag you prefer (this is based on TextMate functionality, to help my transition!). You will have to click (or press Escape) to return the cursor to a single position (unless there's another method I don't know about...).
Again, if this is duplicating another plugin/built-in function please let me know! I'd always rather use original functions, than plugins!
You can get it here:
http://dom111.co.uk/files/sublime/plugins/wrap_each.py