[TxMt] Snippet to change an HTML tag

Jed Hurt jed.hurt at gmail.com
Sat Feb 24 06:17:50 UTC 2007


This seems to happen quite often...

I have:

  <h2>Download Our Catalog</h2>

Which needs to become:

  <h3>Download Our Catalog</h3>


How would I go about writing a snippet/command that would allow me to
select "<h2>Download Our Catalog</h2>", activate the snippet, and have
the tag become selected ("h2" in this case) and mirrored in the
closing tag, therefore allowing me to simply type "h3" and then tab
back out?



More information about the textmate mailing list