CSS Syntax in nano

Ik heb al eerder een syntax-highlighting snippet gepubliceerd voor PHP in nano, en als opvolger bij deze de snippet voor CSS, veel plezier!

# Syntax highlighting for Cascading Style Sheets
 
syntax "css" "\.css$"
color brightblue        start="." end="$"
color brightyellow      start="\{" end="\}"
color white             start=":" end=";|$"
color yellow            ":active|:focus|:hover|:link|:visited|:link|:after|:before"
color brightwhite       "\'|\""
color brightred         ";|:"
color red               start="\[" end="\]"
color green             start="/\*" end="\*/"

Leave a Reply