[TxMt] Tabulation of end tags
Andreas Wahlin
andreaswahlin at bredband.net
Fri Oct 28 11:28:59 UTC 2005
I suggest just taking all the tags from the "meta.tag.block.any.html"
scope in HTML language bundle, and then merging them with the
increase/decreaseIndentPattern regexp catcher in the HTML preference.
Thus creating
decreaseIndentPattern = '^\s*(</(html|head|body|title|table|tr|td|
address|blockquote|dd|div|dl|dt|fieldset|form|frame|frameset|h1|h2|h3|
h4|h5|h6|iframe|noframes|object|ol|p|ul|applet|center|dir|hr|menu|pre)
>|\})$';
increaseIndentPattern = '(<(html|head|body|title|table|tr|td|address|
blockquote|dd|div|dl|dt|fieldset|form|frame|frameset|h1|h2|h3|h4|h5|
h6|iframe|noframes|object|ol|p|ul|applet|center|dir|hr|menu|pre)\b[^>]
*>|\{)\s*$';
I could of course do this myself, but I'm more comfortable with
"official" things, how's that?
Now as far as the XML-preference goes, I'm again somewhat regexp
stumped.
Andreas
More information about the textmate
mailing list