Sublime Forum

Will not switch to PHP mode? (ST3/3059)

#1

I am editing a .module file and some other .php module (.info, .inc, etc) files. SublimeText status bar always says it’s in HTML mode (bottom right of window frame). If I pick the popup menu and select PHP, it still says HTML in the status bar. The popup menu has a checkmark next to PHP, but the status bar always sticks with HTML. Please advise.

0 Likes

#2

Can anyone confirm if this is the way if PHP mode is supposed to work, or this is a bug?

0 Likes

#3

PHP syntax is always loaded up via the HTML syntax. That is just the way it is currently. You can manually switch to PHP, but then if you have any HTML, it won’t get highlighted, but I don’t see why that would be desired.

0 Likes

#4

OK well, conversely, I am now editing some .html files (with no PHP code in them) and Sublimetext says “PHP” in the status bar. When I click on the PHP in the status bar, the popup selection menu has a checkmark next to HTML but not next to PHP. Something is clearly broken with the user interface. I dont like being told I’m in PHP mode, when I am editing plain .html file.

0 Likes