开发者

CoffeeScript TextMate Run Command

开发者 https://www.devze.com 2023-03-13 17:54 出处:网络
Can anyone assist with the TextMate Run command? I am n开发者_JAVA技巧ot 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.

Can anyone assist with the TextMate Run command? I am n开发者_JAVA技巧ot 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.


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.


Install the CoffeeScript bundle:

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

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

0

精彩评论

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

关注公众号