Better syntax highlighting for js.erb files in Textmate

I would like Textmate to highlight the Ruby syntax inside the <% %> %% <% %> tags in * .js.erb files (for example, in * .html.erb files). Now it looks like this:

alt text

As you can see, everything inside the quotes is treated like a regular JS string - annoying.

+4
source share
1 answer

I think the “HTML (Rails)” package in TextMate will determine the syntax highlighting for what you are looking for, and what you describe is likely to be an improvement for the plugin. I looked into the DrNic Ruby on Rails bundle (or write him some tips, he is friendly) to find out how you can add this functionality, I am completely sure that this is the right set, but DrNic has developed others, and, starting with that he asked him for help, that would be a good bet. You can use it in your personal blog / contact information.

+1
source

All Articles