CoffeeScript TextMate Run Command
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.
精彩评论