+16
Override default associated syntax definition
Association between file types and syntax definitions is established in syntax definitions by means of the "filetypes" element. While normally this works fine, sometimes you might want to use an alternate syntax definition for a file type that already has a generic syntax definition associated with it, and to which Sublime gives precedence. To override the default syntax definition, it would be necessary to be able to specify a preferred syntax definition for a file type. If this preferred syntax wasn't found, Sublime would fall back to the current system.
Example:
file_types: {
"sublime-build": {
"syntax": "Packages/PackageDev/Support/Sublime Build.tmLanguage",
}
}
Customer support service by UserEcho
But could this be done on a per project basis?
Is it possible (and if so, how? - if not, could it be?) to set the default syntax for certain file extensions on a per project basis?
that is, I wanna open .html files in one project using a certain tmLanguage file
but I wanna keep the default on other pojects.
I tried using the following in rspec.sublime-settings but it doesn't work:
{
"extensions":
[
"spec.rb"
]
}