mirror of
https://github.com/scopatz/nanorc.git
synced 2024-10-18 02:06:40 -07:00
Syntax for markdown format
This commit is contained in:
parent
297a5fcbdc
commit
9975b237ac
1 changed files with 17 additions and 0 deletions
17
markdown.nanorc
Normal file
17
markdown.nanorc
Normal file
|
|
@ -0,0 +1,17 @@
|
||||||
|
syntax "markdown" "\.(md|mkd|mkdn|markdown)$"
|
||||||
|
|
||||||
|
# Emphasis
|
||||||
|
color green "(^|[[:space:]])(_[^ ][^_]*_|\*[^ ][^*]*\*)"
|
||||||
|
|
||||||
|
# Strong emphasis
|
||||||
|
color brightgreen "(^|[[:space:]])(__[^ ][^_]*__|\*\*[^ ][^*]*\*\*)"
|
||||||
|
|
||||||
|
color brightmagenta "^=====*$|^-----*$|^#{1,6}.*"
|
||||||
|
color blue "^[[:space:]]*[\*+-] |^[[:space:]]*[0-9]+\. "
|
||||||
|
color black "^[[:space:]]+"
|
||||||
|
color magenta "\(([CcRr]|[Tt][Mm])\)" "\.{3}" "(^|[[:space:]])\-\-($$
|
||||||
|
color brightyellow "\!?\[[^]]*\]([[:space:]]*\[[^]]*\]|\(.*\))?"
|
||||||
|
color brightyellow "^\[.*\]:[[:space:]]*[^"]*"
|
||||||
|
color yellow "`[^`]*`|^ {4}[^-+*].*"
|
||||||
|
color brightblack "^>.*"
|
||||||
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue