nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

css.nanorc (518B)


      1 ## Syntax highlighting for CSS files.
      2 
      3 ## Original author:  Simon Rupf
      4 
      5 syntax css "\.css$"
      6 comment "/*|*/"
      7 
      8 # First make everything red:
      9 color brightred "."
     10 # Then everything between braces yellow:
     11 color brightyellow start="\{" end="\}"
     12 # Then everything after a colon white:
     13 color brightwhite start=":" end="([;^{]|$)"
     14 
     15 # Pseudo-classes:
     16 color brightcyan ":(active|checked|focus|hover|link|visited|after|before)\>"
     17 
     18 # Comments:
     19 color brightblue start="/\*" end="\*/"
     20 
     21 # Syntactic characters:
     22 color green ";|:|\{|\}"