Last active
November 18, 2020 23:04
-
-
Save rb2/1f6b23ea5ea848c75a8c to your computer and use it in GitHub Desktop.
mcedit Markdown syntax
This file contains hidden or 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
# Markdown syntax highlight config for MC (MidnigntCommander) | |
# (not full, but usable) | |
# | |
# https://gist.github.com/rb2/1f6b23ea5ea848c75a8c | |
# | |
# Authors: | |
# Ruslan Brest, http://rb.labtodo.com, 2013 | |
# | |
# Usage: | |
# | |
# $ mc --version | |
# GNU Midnight Commander 4.8.15 | |
# | |
# 1. copy to `~/.local/share/mc/syntax/markdown.syntax` | |
# 2. Add these 2 lines to `~/.config/mc/mcedit/Syntax`: | |
# | |
# file ..\*\\.(md|markdown|txt|text)$ Markdown | |
# include /home/rb/.local/share/mc/syntax/markdown.syntax | |
context default | |
## Links | |
## keyword [*](http*) brightcyan/17 | |
keyword [*] cyan | |
keyword <*> yellow | |
keyword (http*) brightmagenta | |
keyword (ftp*) brightmagenta | |
keyword (//*) brightmagenta | |
## **Bold** or __Bold__ | |
keyword \*\**\*\* yellow | |
keyword __*__ yellow | |
## *italic* or _italic_ | |
keyword \s\**\*\s white | |
keyword \s_*_\s white | |
## Horisontal ruler | |
keyword linestart -+ white | |
## List | |
keyword linestart \* brightgreen | |
keyword linestart - brightgreen | |
# keyword \{0123456789\} white | |
## Headings | |
#context linestart #+ \n lightgray brightred bold | |
context linestart #+ \n black yellow bold | |
spellcheck | |
## (not Markdown) TODO | |
context linestart TODO: \n brightred | |
## Code, tt, pre | |
context ``` ``` brightred | |
context ` ` brightred | |
context linestart From:\s \n\n cyan | |
keyword linestart From: brightgreen | |
keyword linestart From\s brightred | |
keyword <*@*> white | |
keyword whole +@+ white | |
keyword linestart To: brightmagenta | |
keyword linestart Subject: brightred/Orange | |
keyword linestart +: brown | |
context linestart Date:\s \n\n cyan | |
keyword linestart From: brightgreen | |
keyword linestart From\s brightred | |
keyword <*@*> white | |
keyword whole +@+ white | |
keyword linestart To: brightmagenta | |
keyword linestart Subject: brightred/Orange | |
keyword linestart +: brown | |
context linestart Title:\s \n\n cyan | |
keyword linestart Author: brightgreen | |
keyword linestart +: brown | |
context " " green | |
spellcheck | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@szepeviktor Sorry haven't seen your comment... I have updated description for mc version 4.8.15