Home Download Buy Blog Forum Support

Indentation rules for nested languages

Indentation rules for nested languages

Postby loremipsum on Thu Dec 08, 2011 8:02 am

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 <![CDATA[ ... ]]> 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 :

Code: Select all
            import flash.ui.Keyboard;

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...
Posts: 19
Joined: Tue Nov 22, 2011 12:10 pm

Return to Technical Support

Who is online

Users browsing this forum: Yahoo [Bot] and 29 guests