Sublime Text 2: Setting file syntax inside the file itself (as Vim modelines)
There is a Modelines plugin for Sublime Text: https://github.com/SublimeText/Modelines
To do this for every file with a specific extension, with a file open go to menu View
, Syntax
, Open all with current extension as...
and set your preference there.
It doesn't seem to be possible natively to set it per file or project, but propably you should take a look at this package: https://github.com/phillipkoebbe/DetectSyntax