Add Javascript Syntax Highlighting for the HAMLTM Suite

I have a HAML TextMate package and inside the block: javascript, I would like to have the appropriate javascript syntax. How can I change the HAML package for this?

+5
source share
2 answers

You can edit the grammar of the HAML package, but it looks like it has already been done in some other forks of the HAML package. See phuibonhoa / handcrafted-haml-textmate-bundle , for example:

Improved language

  • Text inside Ruby, ERB, Javascript, Sass and CSS filters is now correctly recognized, so you get all syntax highlighting, fragments, commands, etc.

.

+4

All Articles