如何让 Textmate 检测过滤器后的代码:coffeescript?
使用 Haml :javascript 过滤器,过滤器后面的代码会被准确地检测为 javascript。 :coffeescript 过滤器不会发生这种情况。如何让 Textmate 将此代码识别为咖啡脚本? (我已经安装了 coffeescript 包。)
Using the Haml :javascript filter, the code following the filter is accurately detected as javascript. This isn't happening with the :coffeescript filter. How do I make Textmate recognize this code as coffeescript? (I already have the coffeescript bundle installed.)
为此,您需要编辑 HAML 捆绑语法,可能只需复制 JavaScript 语言分隔符并修改它以与 Coffeescript 一起使用即可。
http://wiki.macromates.com/Main/Bundles
You would need to edit the HAML bundle syntaxes to do that, probably just by copying the JavaScript language delimiter and modifying it to work with Coffeescript.
http://wiki.macromates.com/Main/Bundles