Sublime Forum

Indentation rules for nested languages

#1

Hi,
First of all thank you for Sublime Text 2. I love it.

I work with Flex projects, and some MXML files contain nested ActionScript (within tags). I’d like to define indentation rules that increase the indent level when encountering such a tag, so that I’d obtain, after reindent :

</fx:Declarations> <fx:Script> <![CDATA[ import flash.ui.Keyboard; ]]> </fx:Script> <s:WhateverOtherStuff/>

But the point is, if a change the rules to match, say, literally CDATA, it only works when the next line is mxml, not if it is actionscript. I wonder if it’s a bug or if I’m doing something wrong…

0 Likes