atom / language-ruby-on-rails

Ruby on Rails package for Atom
Other
48 stars 41 forks source link

html.erb files opening in html syntax not html (rails) syntax #14

Closed ghost closed 6 years ago

ghost commented 10 years ago

unsure if im doing something wrong? but i keep having to switch my syntax highlighting to rails html manually when opening .html.erb files?

sandrods commented 10 years ago

+1

ghost commented 10 years ago

you mean im not the only one :O

kaiocristian commented 10 years ago

Solved it with this temporary solution from @amnwebmaster.

envygeeks commented 9 years ago

This also happens quite a bit with the plain old .erb extension.

ollpu commented 9 years ago

This issue is still present. Quite annoying, I have to say.

TangMonk commented 9 years ago

+1

michalvalasek commented 9 years ago

+1

amingilani commented 8 years ago

+1

Vterebenin commented 6 years ago
  1. Create two .sublime-settings files by opening an .html.erb file and choose Open all with current extension as… twice. Once with regular HTML and again with Rails -> HTML (Rails)
  2. Navigate to that folder by choose Preferences -> Browse Packages… and open both of your newly created .sublime-settings files.
  3. In HTML.sublime-settings remove all the lines referring to rails or erb including html.erb
  4. In HTML (Rails).sublime-settings remove all lines referring to plain html