nano

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

default.nanorc (839B)


      1 ## This is an example of a default syntax.  The default syntax is used for
      2 ## files that do not match any other syntax.
      3 
      4 syntax default
      5 comment "#"
      6 
      7 # Spaces in front of tabs.
      8 color ,red " +	+"
      9 
     10 # Nano's release motto, then name plus version.
     11 color italic,lime "\<[Nn]ano [1-8]\.[0-9][-.[:alnum:]]* "[^"]+""
     12 color brightred "\<(GNU )?[Nn]ano [1-8]\.[0-9][-.[:alnum:]]*\>"
     13 
     14 # Dates
     15 color latte "\<[12][0-9]{3}\.(0[1-9]|1[012])\.(0[1-9]|[12][0-9]|3[01])\>"
     16 
     17 # Email addresses.
     18 color magenta "<[[:alnum:].%_+-]+@[[:alnum:].-]+\.[[:alpha:]]{2,}>"
     19 
     20 # URLs.
     21 color lightblue "\<https?://\S+\.\S+[^])>[:space:],.]"
     22 
     23 # Bracketed captions in certain config files.
     24 color brightgreen "^\[[^][]+\]$"
     25 
     26 # Comments.
     27 color cyan "^[[:blank:]]*#.*"
     28 
     29 # Make hard (non-breaking) spaces noticeable.
     30 color ,#444 " "
     31 
     32 # Control codes.
     33 color orange "[[:cntrl:]]"