Sublime Text 2: How to get scss and Less files to have color?

Jryl picture Jryl · Jun 8, 2013 · Viewed 44.4k times · Source

I'm using Sublime Text 2 and the css.scss and css.less files are in all white text - the comments, brackets, syntax - everything. If I look at my regular css files, they have color to differentiate all of the above. Has anyone else dealt with this? Is this some bug I'm getting? How could I add my own color or take the same settings from the regular css file and add it to the less and scss one's?

Answer

Chubby Boy picture Chubby Boy · Jun 8, 2013

You can set the syntax for any specific extension. Please see this:

http://www.codechewing.com/library/set-default-syntax-highlight-for-different-filetypes-sublime-text/

Open the corresponding file with .scss/.less extension. From the menu at the top, goto View > Syntax > [Optional: Open all with current extension as...] > CSS

enter image description here