简体   繁体   中英

Textmate Ruby on Rails Highlighting

I have Textmate 1.5.7 running on my leopard machine.

When programming in rails, for some reason some key words do not get highlighted. For example: validates_presence_of , has_many , remote_form_for ( form_for gets highlighted) etc...

I tried switching themes and it did not help. I also tried upgrading to the most recent rails bundle but no cigar. Could someone please help?

使用RubyOnRails作为语言而不是Ruby

If you're editing views like .erb files you'll want to select HTML (Rails) so the remote_form_for , etc. get properly highlighted. For everything else (controllers, models, migrations, etc.) like @Omar points out, make sure you've got Ruby on Rails selected.

Just a quick note for other lurkers -- it took me a little while to figure out how to change languages on TextMate. You can do it through the Bundle Editor, which will show you the shortcut as well...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM