Code templates delete selected text
Posted: Fri Sep 04, 2009 7:10 pm
I'd really like to use code templates for some of my most common markup tasks, so that I can add (say) a tag with several attributes in one operation. However, if I apply a code template with some text selected, instead of wrapping the template around the selected text, it deletes the selection. I'd like to be able to do this:
[Original text selected]
1984
[Result]
<title level="m">1984</title>
so the template would look something like:
<title level="m">${selection}</title>
Is this possible, or planned for a future version?
Cheers,
Martin
[Original text selected]
1984
[Result]
<title level="m">1984</title>
so the template would look something like:
<title level="m">${selection}</title>
Is this possible, or planned for a future version?
Cheers,
Martin