[TxMt] Syntax highlighting for html.erb

Daniel Stockman daniel.stockman at gmail.com
Fri Jan 25 21:25:02 UTC 2008


> I have just updated my Rails to 2.0.2 but now when I edit a html.erb  
> file, TextMate doesn't show any syntax highlighting: all the text is  
> white. Is it possible to add syntax highlighting ?

With an html.erb file open, press Control + Option + Shift + R.
This will set the syntax type for all *.html.erb files to HTML (Rails).

Alternatively, the trunk Rails bundle already knows about  
the .html.erb files.

~ Daniel



More information about the textmate mailing list