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?
Unfortunately, by default, Sublime Text is incompatible with SASS/SCSS syntax.
Click the relevant language and the Sublime will do the coloring according to your selection. Show activity on this post. If you are just opening new files and pasting text in, the default syntax is "Plain Text", thus no highlighting.
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
In SublimeText Preferences > Package Control.
Select "Package Control:Install Package".
Now type "LESS" in the box. Click on first option which appears.
Restart Sublime.
Open the LESS file
View > Syntax. Select LESS
Same follows for SASS even
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With