Skip to content

Instantly share code, notes, and snippets.

@jcolebrand
Created September 17, 2011 19:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jcolebrand/1224256 to your computer and use it in GitHub Desktop.
Save jcolebrand/1224256 to your computer and use it in GitHub Desktop.
markdown nanorc
syntax "markdown" "\.txt$"
# Quotations
color cyan "^>.*"
# Emphasis
color green "_.*_"
color green "\*.*\*"
# Strong emphasis
color brightgreen "\*\*.*\*\*"
color brightgreen "__.*__"
# Underline headers
color brightblue "^====(=*)"
color brightblue "^----(-*)"
# Hash headers
color brightblue "^#.*"
# Linkified URLs (and inline html tags)
color brightmagenta start="<" end=">"
# Links
color brightmagenta "\[.*\]\(.*\)"
# Reference-style links
color brightmagenta "\[.*\]( )?\[.*\]"
# Link id's:
color brightmagenta "^\[.*\]:( )+.*"
# Code spans
color brightyellow "`.*`"
# Code blocks
color brightyellow "^( ).*"
# Inline images
color brightmagenta "!\[.*\]\(.*\)"
# Reference-style images
color brightmagenta "!\[.*\]\[.*\]"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment