CoffeeScript TextMate Run Command

邮差的信 提交于 2019-12-10 11:29:42

问题


Can anyone assist with the TextMate Run command? I am not sure how to set the variable and its value in the TextMate in order to Run command + R and get the result of CoffeScript file. Many thanks.


回答1:


After you install the tmbundle, as described in the first answer, in Preference Panel, select the Advanced tab and under TM_PATH add the path to coffee. To find out the path, type:

which coffee

at the command line.

If you installed using Homebrew, you'll get something like this for your path:

/usr/bin:/bin:/Users/me/local/node/bin:/usr/sbin:/sbin:/usr/local/bin

The /usr/local/bin part is where coffee is located.




回答2:


Install the CoffeeScript bundle:

https://github.com/jashkenas/coffee-script-tmbundle

This will give you syntax highlighting and a lot more, including compilation.



来源:https://stackoverflow.com/questions/6397795/coffeescript-textmate-run-command

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!