Skip to content

Instantly share code, notes, and snippets.

@shivabhusal
Created May 29, 2017 14:14
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 shivabhusal/a390f202da2721b90a2c0d9480cdf876 to your computer and use it in GitHub Desktop.
Save shivabhusal/a390f202da2721b90a2c0d9480cdf876 to your computer and use it in GitHub Desktop.
Nano config to highlight markdown files
syntax "markdown" "\.md$" "\.markdown$"
## 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 "\[.*\](\([^\)]*\))?"
## Link id's:
color brightmagenta "^\[.*\]:( )+.*"
## Links and inline images
color brightmagenta start="!\[" end="\]"
color brightmagenta start="\[" end="\]"
## Lists
color yellow "^( )*(\*|\+|\-|[0-9]+\.) "
## Links and inline images
color magenta start="!\[" end="\]"
color magenta start="\[" end="\]"
## Code spans
color yellow "`[^`]*`"
color yellow "``([^``]*)``"
## Code blocks
color yellow start="```" end="```"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment