[TxMt] html snippets, why the selected text part?
Charilaos Skiadas
skiadas at math.uchicago.edu
Sat May 21 21:54:59 UTC 2005
On May 21, 2005, at 4:44 PM, Jeroen van der Ham wrote:
> Speaking of which, would there be some way of wrapping a selected text
> in
> an arbitrary tag? I know I frequently run into that.
There's a "Wrap selection in tab" snippet in the HTML bundle, bound to
shift-control-w. Is that what you mean?
Right now it does the following:
<${1:p}>`printenv TM_SELECTED_TEXT|sed 's/\$/\\$/g'`</${1:p}>$0
I am wondering maybe it would be more helpful if it was:
<${1:p} $2>`printenv TM_SELECTED_TEXT|sed 's/\$/\\$/g'`</${1:p}>$0
so that people can add attributes to the tag.
Haris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 670 bytes
Desc: not available
URL: <http://lists.macromates.com/textmate/attachments/20050521/1d324073/attachment.bin>
More information about the textmate
mailing list