Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Add Javascript syntax highlighting to the HAML TM Bundle

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?

like image 217
trobrock Avatar asked Oct 14 '22 00:10

trobrock


1 Answers

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.

like image 79
Derek Prior Avatar answered Oct 18 '22 03:10

Derek Prior