mirror of
https://github.com/felixangell/phi.git
synced 2024-08-16 11:10:37 +03:00
markdown syntax highlighting (headers)
only added semi support for headers
This commit is contained in:
parent
03ae13931b
commit
3a0938191f
@ -26,6 +26,9 @@ extensions = [".c", ".h", ".cc"]
|
||||
[file_associations.go]
|
||||
extensions = [".go"]
|
||||
|
||||
[file_associations.md]
|
||||
extensions = [".md"]
|
||||
|
||||
[theme]
|
||||
background = 0x002649
|
||||
foreground = 0xf2f4f6
|
||||
|
@ -26,6 +26,9 @@ extensions = [".c", ".h", ".cc"]
|
||||
[file_associations.go]
|
||||
extensions = [".go"]
|
||||
|
||||
[file_associations.md]
|
||||
extensions = [".md"]
|
||||
|
||||
[theme]
|
||||
background = 0x002649
|
||||
foreground = 0xf2f4f6
|
||||
|
@ -26,6 +26,9 @@ extensions = [".c", ".h", ".cc"]
|
||||
[file_associations.go]
|
||||
extensions = [".go"]
|
||||
|
||||
[file_associations.md]
|
||||
extensions = [".md"]
|
||||
|
||||
[theme]
|
||||
background = 0x002649
|
||||
foreground = 0xf2f4f6
|
||||
|
@ -83,4 +83,12 @@ match = [
|
||||
"=", ":", ";", "*", "&", "+", "-", "/", "%",
|
||||
"^", "#", "!", "@", "<", ">", ".", ","
|
||||
]`)
|
||||
|
||||
RegisterSyntax("md", `[syntax.md]
|
||||
[syntax.header]
|
||||
colouring = 0xff00ff
|
||||
pattern = '(?m)^#{1,6}.*'
|
||||
`)
|
||||
|
||||
// your syntax here!
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user