mirror of
https://github.com/felixangell/phi.git
synced 2024-09-11 15:55:25 +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]
|
[file_associations.go]
|
||||||
extensions = [".go"]
|
extensions = [".go"]
|
||||||
|
|
||||||
|
[file_associations.md]
|
||||||
|
extensions = [".md"]
|
||||||
|
|
||||||
[theme]
|
[theme]
|
||||||
background = 0x002649
|
background = 0x002649
|
||||||
foreground = 0xf2f4f6
|
foreground = 0xf2f4f6
|
||||||
|
@ -26,6 +26,9 @@ extensions = [".c", ".h", ".cc"]
|
|||||||
[file_associations.go]
|
[file_associations.go]
|
||||||
extensions = [".go"]
|
extensions = [".go"]
|
||||||
|
|
||||||
|
[file_associations.md]
|
||||||
|
extensions = [".md"]
|
||||||
|
|
||||||
[theme]
|
[theme]
|
||||||
background = 0x002649
|
background = 0x002649
|
||||||
foreground = 0xf2f4f6
|
foreground = 0xf2f4f6
|
||||||
|
@ -26,6 +26,9 @@ extensions = [".c", ".h", ".cc"]
|
|||||||
[file_associations.go]
|
[file_associations.go]
|
||||||
extensions = [".go"]
|
extensions = [".go"]
|
||||||
|
|
||||||
|
[file_associations.md]
|
||||||
|
extensions = [".md"]
|
||||||
|
|
||||||
[theme]
|
[theme]
|
||||||
background = 0x002649
|
background = 0x002649
|
||||||
foreground = 0xf2f4f6
|
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