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?
相关问题
- How to run code in Sublime text 2 python
- Not able to run selected lines in REPL R in sublim
- Why is Sublime Package Control not working?
- C++ 11 code compiles with `clang++`, but not with
- White text in Sublime Text
相关文章
- trouble getting sublime to execute with linux term
- NVM cannot load default node with default alias se
- Automatically select pasted text in Sublime Text 3
-
Perl with Sublime Text 2:
not working - How to run python code in Sublime Text 3?
- How to make Zen Coding support JavaScript files in
- Show info about current character in status bar in
- Sublime Text 3: how to bind a shortcut to a specif
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
The best way to install package for viewing coloured less syntax in sublime text is following this link:
https://sublime.wbond.net/installation#st2
That is because here there are instruction on how to do in case the command line written in the precedent answer doesn't work. There are also two different command lines for different versions of Sublime Text.
After package is installed you will see the LESS category in the View>Syntax menu option.
To me it helped a lot. Hope it works for you too!
Install the
less
andsass
plugins through the package manager to get the correct syntax highlighting for those file types.You can install the package manager by using copying the following code and pasting it in the sublime text console (view -> show console) :
When it's installed you press ctrl+shift+p, write install then click on install package. On the screen that comes up write sass then click on the sass syntax package. When that's finished just open your scss file, press ctrl+shift+p then write sass and click on "set syntax: sass"
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
To install LESS package manually follow this procedure:
.less
fileTo install SCSS package you must do the same procedure.
SCSS package direct download : https://github.com/MarioRicalde/SCSS.tmbundle/archive/master.zip
Happy coding!