Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CoffeeScript syntax highlighting not showing up in Sublime Text 2 [duplicate]

I needed to do some coding in CoffeeScript, so I found https://github.com/Xavura/CoffeeScript-Sublime-Plugin and I installed it using Package Control. I restarted Sublime Text and everything I type in my .js.coffee file is still plain white. What am I doing wrong here?

like image 352
user3277633 Avatar asked Jun 20 '14 04:06

user3277633


People also ask

How do I enable syntax highlighting in sublime?

To enable Syntax Highlighting click on “View” in the top bar, then hover your mouse over “Syntax”, and select your programming language from the list. Alternatively, if you save a document with a supported file extension, Sublime Text 3 will automatically apply the Syntax Highlighting for that language.

Does Sublime Text support syntax highlighting?

Sublime Text can use both . sublime-syntax and . tmLanguage files for syntax highlighting.


1 Answers

Open a .coffee file, then go to View -> Syntax -> Open all with current extension as... -> CoffeeScript. Now, any time you open a CoffeeScript file it should have the correct syntax highlighting.

like image 112
MattDMo Avatar answered Sep 19 '22 15:09

MattDMo