Reputation: 5459
I have some files with the extension "js.php" that I would like Sublime to automatically treat as Javascript files not PHP files. Is this possible?
I tried adding "extensions": ["js.php"]
to my user settings and then setting View->Syntax->Open All With Current Extension As ->Javascript (while a js.php file was open) but all files with just a .php extension were opened as Javascript files too.
Upvotes: 0
Views: 102
Reputation: 19754
Take a look at the ApplySyntax plugin. It was written to handle just such a scenario.
Upvotes: 2