From 9975b237ac4e9902cce685c2a3ee26abbf107a6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mariusz=20Smyku=C5=82a?= Date: Sat, 1 Jun 2013 22:59:28 +0200 Subject: [PATCH] Syntax for markdown format --- markdown.nanorc | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 markdown.nanorc diff --git a/markdown.nanorc b/markdown.nanorc new file mode 100644 index 0000000..5a1755c --- /dev/null +++ b/markdown.nanorc @@ -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 "^>.*" +