nano

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

markdown.nanorc (947B)


      1 ## Syntax highlighting for Markdown files.
      2 
      3 ## Original authors:  Ryan Westlund and Benno Schulenberg
      4 ## License:  GPL version 3 or newer
      5 
      6 syntax markdown "\.md$"
      7 comment "<!--|-->"
      8 
      9 # Quoted:
     10 color magenta "^[ 	]*>.*"
     11 
     12 # List-item markers:
     13 color brightmagenta "^(    |	)* ? ? ?(\*|\+|-|[0-9]+\.)( +|	)"
     14 
     15 # Emphasis and strong:
     16 color green "\*[^* 	][^*]*\*|_[^_ 	][^_]*_"
     17 color brightgreen "\*\*[^*]+\*\*|__[^_]+__"
     18 
     19 # Strikethrough:
     20 color red "~~[^~]+~~"
     21 
     22 # Line breaks:
     23 color ,blue "  $"
     24 
     25 # URLs and links:
     26 color brightblue "\[[^]]+\]\([^)]+\)"
     27 color brightmagenta "!?\[[^]]+\]"
     28 
     29 # Code snippet, indented code, and fenced code:
     30 color brightcyan "`[^`]+`"
     31 color brightcyan "^(    |	)+ *([^*+0-9> 	-]|[*+-]\S|[0-9][^.]).*"
     32 color brightcyan start="```" end="```$"
     33 
     34 # Headings and the underlining of headings:
     35 color brightyellow "^#.*"
     36 color brightyellow "^(=+|-+)$"
     37 
     38 # HTML tags and comments:
     39 color cyan "<[^>]+>"
     40 color cyan start="<!--" end="-->"