/coffee-script-tmbundle

Fork of the official CoffeeScript TextMate bundle that adds line numbers to the "Compile and Display JS" output (cmd+B).

CoffeeScript.tmbundle (w/ line numbers)

A TextMate Bundle for the CoffeeScript programming language.

Installation:

mkdir -p ~/Library/Application\ Support/TextMate/Bundles
cd ~/Library/Application\ Support/TextMate/Bundles
git clone git://github.com/aseemk/coffee-script-tmbundle CoffeeScript.tmbundle

The bundle includes syntax highlighting, the ability to compile or evaluate CoffeeScript inline, convenient symbol listing for functions, and a number of expando snippets.

This fork adds line numbers to the "Compile and Display JS" output (cmd+B). This change was submitted upstream and was initially accepted, but was later reverted due to differing primary use cases.

Patches for additions are always welcome.

screenshot

If your TextMate.app is having trouble finding the coffee command, remember that TextMate doesn't inherit your regular PATH.

Using with Sublime Text 2

Installation for with Sublime Text 2 on OSX:

cd ~/Library/Application\ Support/Sublime\ Text\ 2/Packages
git clone https://github.com/jashkenas/coffee-script-tmbundle.git CoffeeScript

Installation for Sublime Text 2 on Linux (tested in Ubuntu 11.04):

git clone https://github.com/jashkenas/coffee-script-tmbundle.git
cd coffee-script-tmbundle
zip -r CoffeeScript.sublime-package *
mv CoffeeScript.sublime-package ~/Applications/Sublime\ Text\ 2/Pristine\ Packages

Quit and restart Sublime Text 2.