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