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

前端 未结 6 398
渐次进展
渐次进展 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:11

    You can install the package manager by using copying the following code and pasting it in the sublime text console (view -> show console) :

    import urllib2,os; pf='Package Control.sublime-package'; ipp=sublime.installed_packages_path(); os.makedirs(ipp) if not os.path.exists(ipp) else None; urllib2.install_opener(urllib2.build_opener(urllib2.ProxyHandler())); open(os.path.join(ipp,pf),'wb').write(urllib2.urlopen('http://sublime.wbond.net/'+pf.replace(' ','%20')).read()); print('Please restart Sublime Text to finish installation')
    

    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"

提交回复
热议问题