Created
May 29, 2017 14:14
-
-
Save shivabhusal/a390f202da2721b90a2c0d9480cdf876 to your computer and use it in GitHub Desktop.
Nano config to highlight markdown files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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