comparison nanorc.d/markdown.nanorc @ 84:b989099cde9f

Start to update Nano colourisation Defaults are REALLY basic
author IBBoard <dev@ibboard.co.uk>
date Sat, 31 Mar 2018 21:06:21 +0100
parents
children
comparison
equal deleted inserted replaced
83:966d8f8f89d0 84:b989099cde9f
1 syntax "Markdown" "\.(md|mkd|mkdn|markdown)$"
2
3 # Tables (Github extension)
4 color cyan ".*[ :]\|[ :].*"
5
6 # quotes
7 color brightblack start="^>" end="^$"
8 color brightblack "^>.*"
9
10 # Emphasis
11 color green "(^|[[:space:]])(_[^ ][^_]*_|\*[^ ][^*]*\*)"
12
13 # Strong emphasis
14 color brightgreen "(^|[[:space:]])(__[^ ][^_]*__|\*\*[^ ][^*]*\*\*)"
15
16 # strike-through
17 color red "(^|[[:space:]])~~[^ ][^~]*~~"
18
19 # horizontal rules
20 color brightmagenta "^(---+|===+|___+|\*\*\*+)\s*$"
21
22 # headlines
23 color brightmagenta "^#{1,6}.*"
24
25 # lists
26 color blue "^[[:space:]]*[\*+-] |^[[:space:]]*[0-9]+\. "
27
28 # leading whitespace
29 color black "^[[:space:]]+"
30
31 # misc
32 color magenta "\(([CcRr]|[Tt][Mm])\)" "\.{3}" "(^|[[:space:]])\-\-($|[[:space:]])"
33
34 # links
35 color brightblue "\[[^]]+\]"
36 color brightblue "\[([^][]|\[[^]]*\])*\]\([^)]+\)"
37
38 # images
39 color magenta "!\[[^][]*\](\([^)]+\)|\[[^]]+\])"
40
41 # urls
42 color brightyellow "https?://[^ )>]+"
43
44 # code
45 color yellow "`[^`]*`|^ {4}[^-+*].*"
46 # code blocks
47 color yellow start="^```[^$]" end="^```$"
48 color yellow "^```$"
49
50 ## Trailing spaces
51 color ,green "[[:space:]]+$"