开发者

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 highlight开发者_Python百科ing. How could I modify the HAML bundle to do this?


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.


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜