views:

34

answers:

1

I'd like Textmate to highlight Ruby syntax inside <% %> tags in *.js.erb files (like it does in *.html.erb files). Right now it looks like this:

alt text

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

A: 

I think the "HTML (Rails)" bundle in TextMate would define the syntax highlighting for what you're looking for, and what you're describing would probably be an enhancement to the plugin. I'd dig into the DrNic Ruby on Rails bundle (or email him for tips, he is friendly) to look for how you can add this functionality. I'm entirely sure this is the correct bundle, but DrNic has developed others and starting with asking him for help would be a good bet. You can google for his personal blog/contact details.

Andy Atkinson