5 ms·
Show HN: Weekend project - VS2010 CoffeeScript syntax highlighting
- statictype 15y agoHow is Window's support for CoffeeScript? Does the compiler run on Windows? What I would really like is to be able to run the compiler from code, allowing me to keep .coffee files on the server and compile/cache them into javascript when browsers request them.
- dualogy 15y agoThe CoffeeScript compiler is written in CoffeeScript so you can run it wherever you have a JavaScript runtime running. So easy to compile in the browser if eval()ing the compilation result is acceptable. (There's some fancy <script type="text/coffeescript"> or some such example on the CoffeeScript project homepage) Server-side on Windows... not sure, IronJS / JScript.NET I believe?
- amirshim 15y agosure... you can run coffeescript on node on windows, see: http://blog.tatham.oddie.com.au/2011/03/16/node-js-on-windows/ http://blog.tatham.oddie.com.au/2011/03/16/node-js-on-window... And if you don't want to use vs2010, there is also gedit on windows which has support for coffeescript. As for online, what I do is I have an online coffeescript editor (http://ace.ajax.org/ http://ace.ajax.org/), and when I save a file (with extension .coffee), compile it to js in the browser and save both the original .coffee file and .js file back to the server.
- chrisb 15y agoNot quite what you are asking for, but I've recently started using the Chirpy VS add-in (chirpy.codeplex.com). It comiles CoffeeScript on save in VS, producing one readable and one minified js version. It also handles .less, but I haven't used this yet.
- sirclueless 15y agoHoly crap, is it just me or is there is an absurd amount of code in that project for what it does?
- kevingadd 15y agoWhat do you expect? To implement syntax highlighting, you basically need a full parsing and lexing engine, and you need to communicate with the actual editor so that it knows how to color and lay out the source code.
- benatkin 15y agoI added it here: https://github.com/jashkenas/coffee-script/wiki/Text-editor-plugins https://github.com/jashkenas/coffee-script/wiki/Text-editor-... Nice to see CoffeeScript support in so many different environments!
- chrisb 15y agoThanks :)