将 Javascript 语法突出显示添加到 HAML TM Bundle
我有 HAML TextMate 包和 :javascript 块内部,我希望有适当的 javascript 语法突出显示。我如何修改 HAML 包来做到这一点?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以编辑 HAML 包的语法,但看起来这已经在 HAML 包的其他一些分支中完成了。请参阅 phuibonhoa / handcrafted-haml-textmate-bundle,例如:
尝试一下该分支。
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:
Give that fork a shot.
该项目还具有 javascript 突出显示: https://github.com/mattpolito/ruby-haml.tmbundle< /a>
但你还需要安装 jquery 包: https://github.com/kswedberg/ jquery-tmbundle
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