mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-03 10:04:32 +03:00
Ticket #3864: initial support of Markdown syntax highlighting.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
cde8e194aa
commit
26ecb44e1d
@ -51,6 +51,7 @@ SYNTAXFILES = \
|
||||
m4.syntax \
|
||||
mail.syntax \
|
||||
makefile.syntax \
|
||||
markdown.syntax \
|
||||
ml.syntax \
|
||||
named.syntax \
|
||||
nemerle.syntax \
|
||||
|
@ -286,5 +286,8 @@ include osl.syntax
|
||||
file .\*\\.([rR]|Rd|Rscript)$ R\sProgram
|
||||
include r.syntax
|
||||
|
||||
file ..\*\\.(?i:md)$ Markdown
|
||||
include markdown.syntax
|
||||
|
||||
file .\* unknown
|
||||
include unknown.syntax
|
||||
|
35
misc/syntax/markdown.syntax
Normal file
35
misc/syntax/markdown.syntax
Normal file
@ -0,0 +1,35 @@
|
||||
# Markdown syntax highlighting
|
||||
|
||||
context default lightgray
|
||||
spellcheck
|
||||
# links
|
||||
keyword whole [*](*) yellow
|
||||
|
||||
context linestart #### \n red
|
||||
spellcheck
|
||||
|
||||
context linestart # \n brightred
|
||||
spellcheck
|
||||
|
||||
context linestart > \n green
|
||||
spellcheck
|
||||
|
||||
context linestart \s\s\s\s \n cyan
|
||||
|
||||
context ``` ``` cyan
|
||||
|
||||
context `` `` cyan
|
||||
|
||||
context ` ` cyan
|
||||
|
||||
context \*\* \*\* brightgreen
|
||||
spellcheck
|
||||
|
||||
context \* \* magenta
|
||||
spellcheck
|
||||
|
||||
context \_\_ \_\_ brightgreen
|
||||
spellcheck
|
||||
|
||||
context \_ \_ magenta
|
||||
spellcheck
|
Loading…
Reference in New Issue
Block a user