1

I have installed SublimeERB and while it works well for .html.erb files, .js.erb uses HTML syntax highlighting.

If I set "Open all with current extension as..." to JavaScript, it works, but the highlighting goes away the next time I open any .js.erb file. How can I get it to stick?

jvillian
  • 19,953
  • 5
  • 31
  • 44
Jane
  • 119
  • 10
  • See http://stackoverflow.com/questions/9474090/how-do-i-force-sublime-text-2-to-indent-two-spaces-per-tab – Mohamad Mar 04 '16 at 08:32
  • @Mohamad That opened up an empty `erb.sublime-settings` file for me. What would I place in there to get HTML syntax for `.html.erb` and JavaScript syntax for `.js.erb`? – Jane Mar 04 '16 at 08:42
  • @Jane the package mentioned in my answer to the duplicate question will do what you want. Make sure you read the documentation, as you can do some pretty complex things with the plugin. – MattDMo Mar 04 '16 at 14:26
  • @MattDMo That looks complicated. Good a reason as any to starting learning regex I suppose :) – Jane Mar 05 '16 at 09:25

0 Answers0