Set default syntax for erb files


#1

I want to use HTML(Rails) over HTML(Ruby - erb), but haven’t found an effective way of doing this.
Right now I’m using ctrl + shift + L every time I open up a file. I also tried using the file-types package, but couldn’t get it to override the default.

Has anyone been able to figure this out?

I’d be the happiest if someone has a solution! Thanks!


#2

You should be able to accomplish this by editing your init.coffee file as outlined in Set HTML syntax on file.html.js: