[TxMt] Getting started guide?

Allan Odgaard throw-away-1 at macromates.com
Wed Oct 26 02:45:55 UTC 2005


On 26/10/2005, at 4.31, Charilaos Skiadas wrote:

>>> you can get a pair of html tags by typing the tag name, then ctrl- 
>>> cmd-space.
>> Speaking of which, I read that tip also. Started using it and then it
>> just stopped working. Possibly after one of the recent build updates.
>> Does anyone know where I could check the setting for this? Is it a
>> bundle? I couldn't find it.

It's in the HTML bundle, and named Insert Tag Pair. The key (and  
macro) was changed to ctrl-<.

It has also been extended so there are now 3 ways to use it:

  1) type the tag name and ctrl-< to get <tag></tag> with caret  
inbetween, and the ability to use tab to jump past the ending tag
  2) press ctrl-< with nothing selected, and it inserts <p></p> with  
p selected, and tab stops between the tags, and after the end tag
  3) select something and press ctrl-<, then it uses the select for  
the start tag, and the tag part of it for the close tag, e.g. with  
“div id="foo"” selected, it makes it into: <div id="foo"></div>

> [...] If in HTML mode type 'tag' and press ctrl-cmd-space, then I get:
> ?1< />:<></>t?1<ag />:<ag></ag>?1< />:<></>

That's the old macro, it broke because the regexp library was  
changed. You can remove the remains of it from ~/Library/Application  
Support/TextMate/Bundles/HTML.tmbundle/Macros





More information about the textmate mailing list