Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/serialhex/nano-highlight.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Muir Hamilton <aaron@correspondwith.me>2013-11-15 02:50:59 +0400
committerAaron Muir Hamilton <aaron@correspondwith.me>2013-11-15 02:50:59 +0400
commit652b4000fec14dd10e8e3977d3328f3d662e1cc7 (patch)
tree1e06c66d712db4439c108ca156bd4da333f0285a /markdown.nanorc
parentbf8f11a0c4c0382cf8f3ad238ebbc19b97e71569 (diff)
Improve functionality:
De-goof and partially normalize: gentoo.nanorc groff.nanorc haskell.nanorc # NOTE: While there used to be a source cited, we'll never know what was there before since it's a dead link with no caches. havp.nanorc html.nanorc info.nanorc ini.nanorc initng.nanorc initscript.nanorc java.nanorc js.nanorc # NOTE: This thing is still butt-ugly, and doesn't work in bright-background terminals at all. lex.nanorc log-stuff.nanorc lua.nanorc # NOTE: Similar issues to js.nanorc, but even slightly worse in white terminals. maincf.nanorc makefile.nanorc man.nanorc markdown.nanorc mimetype.nanorc named.nanorc nanorc.nanorc paludis.nanorc # NOTE: This nanorc has the same issue as js.nanorc and lua.nanorc, but with the unsettling twist of it favouring light-background terminals, not sure why this was ever included, and who would use something like this. passwd.nanorc patch.nanorc perl.nanorc php.nanorc po.nanorc pov.nanorc privoxy.nanorc python.nanorc # NOTE: python.nanorc is rather bare, maybe a new one should be forged from cython.nanorc reST.nanorc ruby.nanorc tab.nanorc tcl.nanorc tex.nanorc todo.nanorc txt2tags.nanorc url.nanorc xdefaults.nanorc xml.nanorc yacc.nanorc Remove commented legacy blocks from: privoxy.nanorc Remove altogether: mcchangelog.nanorc # NOTE: roughly identical to changelogs.nanorc profile.nanorc # NOTE: This really ought not exist, the handlers have been added to bash.nanorc rcfiles.nanorc # NOTE: Same situation as with profile.nanorc sources_list.nanorc # NOTE: replaced by aptsrclist.nanorc vhost.nanorc # NOTE: Nearly identical to apache2.nanorc, aside from some missing keywords. vhost.conf pattern has been added to apache2.nanorc.
Diffstat (limited to 'markdown.nanorc')
-rw-r--r--markdown.nanorc39
1 files changed, 22 insertions, 17 deletions
diff --git a/markdown.nanorc b/markdown.nanorc
index 145f5cf..8a1dc39 100644
--- a/markdown.nanorc
+++ b/markdown.nanorc
@@ -1,33 +1,38 @@
-## found: http://lists.gnu.org/archive/html/help-nano/2006-08/msg00000.html
-## edited by serialhex
-## http://daringfireball.net/projects/markdown/syntax
syntax "markdown" "\.txt$" "\.text$" "\.md$" "\.markdown$"
-# Quotations
+
+## Quotations
color cyan "^>.*"
-# Emphasis
+
+## Emphasis
color green "_[^_]*_"
color green "\*[^\*]*\*"
-# Strong emphasis
+
+## Strong emphasis
color brightgreen "\*\*[^\*]*\*\*"
color brightgreen "__[\_]*__"
-# Underline headers
+
+## Underline headers
color brightblue "^====(=*)"
color brightblue "^----(-*)"
-# Hash headers
+
+## Hash headers
color brightblue "^#.*"
-# Linkified URLs (and inline html tags)
+
+## Linkified URLs (and inline html tags)
color brightmagenta start="<" end=">"
-# Links
+
+## Links
color brightmagenta "\[.*\](\([^\)]*\))?"
-# Link id's:
+
+## Link id's:
color brightmagenta "^\[.*\]:( )+.*"
-# Code spans
+
+## Code spans
color brightyellow "`[^`]*`"
-# Code blocks
-# disabled, because indented lines aren't always code blocks
-# color brightyellow "^( ).*"
-# Links and inline images
+
+## Links and inline images
color brightmagenta start="!\[" end="\]"
color brightmagenta start="\[" end="\]"
-# Lists
+
+## Lists
color yellow "^( )*(\*|\+|\-|[0-9]+\.) " \ No newline at end of file