nano

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

man.nanorc (912B)


      1 ## Syntax highlighting for man pages.
      2 
      3 ## Original author:  Mike Frysinger
      4 ## License:  GPL version 3 or newer
      5 
      6 syntax man "\.[1-9]x?$"
      7 magic "troff or preprocessor input"
      8 comment ".\""
      9 
     10 # Section headers, title line, and paragraphs.
     11 color green "^\.(SH|SS|TH) .*"
     12 color brightgreen "^\.((SH|SS|TH) |[HIT]P|TQ|LP$|P?P$)"
     13 # Type faces, and synopses.
     14 color brightred "^\.(B[IR]?|I[BR]?|RB|RI|SB|SM|SY|OP) .*"
     15 color brightblue "^\.((B[IR]?|I[BR]?|RB|RI|SB|SM|SY|OP) |YS$)"
     16 # Inline type faces.
     17 color magenta "\\f[BIPR]"
     18 # Some escapes:
     19 color purple "\\([%&:e~]|\(e[mn])"
     20 # Hyphenation control.
     21 color yellow "^\.(hc|hla|hlm|hw|hy)"
     22 # Relative margins, hyperlinks, and various other stuff.
     23 color yellow "^\.(RS|RE|UR|UE|MT|ME|EX|EE|PD|DT)"
     24 color yellow "^\.(ad|bp|br|ce|de|ds|el|ie|if|fi|ft|ig|in|na|ne|nf|nh|ps|so|sp|ti|tr)"
     25 
     26 # Comments.
     27 color cyan "(^\.)?\\".*"
     28 
     29 # Trailing whitespace.
     30 color ,green "[[:space:]]+$"