reywood / sublime-project-specific-syntax

Allows syntax settings to be specified per project in Sublime Text
GNU Lesser General Public License v3.0
87 stars 8 forks source link

I can't get this working for some reason? #7

Closed vladyn closed 8 years ago

vladyn commented 8 years ago

I have "syntax_override": { ".html$": ["AngularJS", "AngularJS"] }, in my project and when opening files with .html they have HTML syntax applied instead of HTML Angular

Any ideas?

reywood commented 8 years ago

You should have two backslashes before the .html, like so:

{
    "syntax_override": {
        "\\.html$": ["AngularJS", "AngularJS"]
    }
}

If that doesn't fix it, try opening the console (View -> Show Console or `Ctrl+`` ) and then opening an HTML file. You may see an error.

vladyn commented 8 years ago

hm - good point - I do have. And this is under windows. I haven't try it on my mac