Sublime Forum

Intentation php and tmPreferences

#1

I’m trying to change the way sublime text indent if else conditions in html. Here’s what i try to do

Any ideas on how to make this work ?

0 Likes

#2

It looks like the indentation rules on the master branch should work as you expect - you could try copying the tmPreferences from there.
(though I notice else without if isn’t tested, so I could be wrong. I may make a pull request to correct that when I get some spare time :slight_smile: )

To answer your concrete problem, iirc unindentedLinePattern means for lines that match the regex, leave the indentation for that line alone.

Sorry, not at a computer right now to be more helpful

0 Likes