[TxMt] Tabulation of end tags

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


On 26/10/2005, at 23.42, Jeroen van der Ham wrote:

>> Sort of — there's a decreaseIndentPattern which is currently unset  
>> for HTML. If it was set to a close tag, at least TM would know  
>> that it should be decreased — currently though, I don't think the  
>> tab smart indent uses the decreaseIndentPattern (but it should).
> I ended up defining a snippet that creates the tag on two lines,  
> with proper indentation and then just worked with that.

Actually, ctrl-< + return should give the proper indent. i.e. “foo  
«ctrl-<» «return»” gives:

     <foo>
         |
     </foo>

> I've seen the effect of the decreaseIndentPattern in the XML bundle  
> and I don't really like it.

I don't see any -- is this something you added yourself?

> Most of the time when I insert something that triggers the  
> decreaseIndent I'm already at the right indent level.

It should be smart, and only decrease indent when the indent is the  
same or larger than the line above.





More information about the textmate mailing list