markdown syntax highlighting (headers)

only added semi support for headers
This commit is contained in:
Felix Angell 2018-04-17 21:04:18 +01:00
parent 03ae13931b
commit 3a0938191f
4 changed files with 17 additions and 0 deletions

View File

@ -26,6 +26,9 @@ extensions = [".c", ".h", ".cc"]
[file_associations.go]
extensions = [".go"]
[file_associations.md]
extensions = [".md"]
[theme]
background = 0x002649
foreground = 0xf2f4f6

View File

@ -26,6 +26,9 @@ extensions = [".c", ".h", ".cc"]
[file_associations.go]
extensions = [".go"]
[file_associations.md]
extensions = [".md"]
[theme]
background = 0x002649
foreground = 0xf2f4f6

View File

@ -26,6 +26,9 @@ extensions = [".c", ".h", ".cc"]
[file_associations.go]
extensions = [".go"]
[file_associations.md]
extensions = [".md"]
[theme]
background = 0x002649
foreground = 0xf2f4f6

View File

@ -83,4 +83,12 @@ match = [
"=", ":", ";", "*", "&", "+", "-", "/", "%",
"^", "#", "!", "@", "<", ">", ".", ","
]`)
RegisterSyntax("md", `[syntax.md]
[syntax.header]
colouring = 0xff00ff
pattern = '(?m)^#{1,6}.*'
`)
// your syntax here!
}