I have the HAML TextMate bundle and inside of the :javascript block, I'd like to have proper javascript syntax highlighting. How could I modify the HAML bundle to do this?
Asked
Active
Viewed 1,230 times
2 Answers
4
You can edit the grammar of the HAML bundle, but it looks like this has already been done in some other forks of the HAML bundle. See phuibonhoa / handcrafted-haml-textmate-bundle, for instance:
Improved Language
- Text inside Ruby, ERB, Javascript, Sass, and CSS filters are now properly recognized so you get all the syntax highlighting, snippets, commands, etc.
Give that fork a shot.

Community
- 1
- 1

Derek Prior
- 3,497
- 1
- 25
- 30
-
1The syntax highlighting doesn't seem to work for me. Did you have any luck with it? – Garrett Lancaster Sep 13 '11 at 20:18
0
this project also has javascript highlighting: https://github.com/mattpolito/ruby-haml.tmbundle
but you'll need the jquery bundle installed as well: https://github.com/kswedberg/jquery-tmbundle

firien
- 1,548
- 16
- 23