Sublime Text 2:如何让 scss 和 Less 文件有颜色? [英] Sublime Text 2: How to get scss and Less files to have color?
问题描述
我使用的是 Sublime Text 2,css.scss
和 css.less
文件都是白色文本——注释、括号、语法——一切.如果我查看我的常规 css
文件,它们的颜色可以区分以上所有内容.有没有其他人处理过这个问题?这是我遇到的一些错误吗?我如何添加自己的颜色或从常规 css
文件中获取相同的设置并将其添加到 less
和 scss
文件中?>
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?
推荐答案
您可以为任何特定扩展设置语法.请看这个:
You can set the syntax for any specific extension. Please see this:
打开扩展名为 .scss/.less 的对应文件.从顶部的菜单中,转到查看 > 语法 > [可选:使用当前扩展名打开所有...] > CSS
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
这篇关于Sublime Text 2:如何让 scss 和 Less 文件有颜色?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!