nano

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

nanohelp.nanorc (591B)


      1 ## This is meant for highlighting key combos in a nano help text.
      2 
      3 # It should not apply to any normal file, so no fileregex.
      4 syntax nanohelp
      5 
      6 # Key combos:
      7 color cyan "\^[]/4-8@[:upper:]\^_`◂▸▴▾-]|[◂▸▴▾]|\<(M|S[Hh]-[Mm])-[^")”»“」]|\<F([1-9]|1[0-9]|2[0-4])"
      8 color cyan "\<((Sh-)?Tab|Enter|Ins|(Sh-\^?)?Del|Space|Bsp|Up|Down|Left|Right|Home|End|PgUp|PgDn)\>"
      9 
     10 # Colorize M-) and M-" only when between parentheses...
     11 color cyan "\(M-(\)|")\)"
     12 color normal " \(|\) "
     13 # ...or when at start of line.
     14 color cyan "^M-(\)|")"
     15 
     16 # Quoted indicators:
     17 color brightred "'(\^|M-)'"