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

前端 未结 6 391
渐次进展
渐次进展 2021-01-31 01:25

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 regu

6条回答
  •  走了就别回头了
    2021-01-31 02:05

    If Package Control is not installed on your Sublime Text you can install package manually.

    To install LESS package manually follow this procedure:

    1. Download the LESS package : https://github.com/danro/LESS-sublime/archive/master.zip
    2. Unzip the archive package
    3. From Sublime Text go to Preferences → Browse Packages...
    4. Copy/paste the package folder into the new window just opened
    5. Restart Sublime Text
    6. Open a .less file
    7. Go to View → Syntax → Open all with current extension as... → Less

    To install SCSS package you must do the same procedure.
    SCSS package direct download : https://github.com/MarioRicalde/SCSS.tmbundle/archive/master.zip

    Happy coding!

提交回复
热议问题