http://www.cnblogs.com/2gua/archive/2012/07/05/2577603.html
Here a little tutorial how to setup Sublime to start coding CoffeeScript:
- Install CoffeeScript (You need to have node.js and the node package manager installed):
- Download and install Sublime Text Editor
- Save the CoffeeScript.tmLanguage here: ~/Library/Application Support/Sublime Text 2/Packages/CoffeeScript/
- Create the CoffeeScript.sublime-build here: ~/Library/Application Support/Sublime Text 2/Packages/Users with the following content:
- Now open Sublime and create a helloWorld.coffee:
- CMD-B to execute the script and you should see the output: