Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sublime text : Add css3 syntax highlighting

Is it possible to add css3 properties like : "animation-name", "animation-timing-function", or values like : "display-table" in CSS syntax highlighting.

I guess it implies *css_completions.py* but I don't know how to proceed.

http://img407.imageshack.us/img407/4408/54ki.png

like image 934
Cyril Avatar asked Jul 14 '26 21:07

Cyril


2 Answers

Luckily you're not the first one to have this question, and this guy has made a package that does just that: https://github.com/i-akhmadullin/Sublime-CSS3

At the bottom there's a installation-guide using the package manager.

like image 53
brixenDK Avatar answered Jul 17 '26 19:07

brixenDK


UPDATE: My CSS3 package is no longer maintained and most people would be better served by using the default CSS package that ships with Sublime. It may still be useful in flagging deprecated/bad CSS, however.

I just pushed what I hope will be the definitive CSS3 package on Package Control. It's for Sublime Text 3 only, but it has comprehensive support for CSS3 properties, values, @-rules, etc. It also has a full set of completions for each property.

Try it out. If you have any problems, please open an issue on Github here.

like image 22
ryboe Avatar answered Jul 17 '26 19:07

ryboe



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!