daaain / Handlebars

Fullest Handlebars.js templating support for Sublime Text 2 / 3. Also drives syntax colouring on Github and in Visual Studio Code. Install from: https://packagecontrol.io/packages/Handlebars.
MIT License
301 stars 48 forks source link

Force priority over default "(HTML) Handlebars" #69

Closed tomitrescak closed 8 years ago

tomitrescak commented 8 years ago

Hi, sorry for asking in your issues, but do you know how can I force to load your handlebars over the original "(HTML) handlebars", when opening handlebars file? My HTML files are handlebars (Meteor), so I have added to my init script following:

fileTypes =
    '.html':'text.html.handlebars'
daaain commented 8 years ago

Hey,

No worries at all :)

This is for Sublime Text, right?

I'm not sure if there's a good project level override, but I just use the "Open all with current extension as..." context menu in the bottom right corner to set up whatever needs to handle the extension. Obviously this will change it for all projects, but it's easy to change around.

Does this help?

tomitrescak commented 8 years ago

Sorry, I meant Atom ;)

daaain commented 8 years ago

Ah right, with Atom I just disabled the built in Mustache package and that fixed it. Maybe I should put this into the Readme!

daaain commented 8 years ago

Finally got around to add a note about this in the README, closing.