diff --git a/cfg/config_any.go b/cfg/config_any.go index ac122a0..a674cda 100644 --- a/cfg/config_any.go +++ b/cfg/config_any.go @@ -26,6 +26,9 @@ extensions = [".c", ".h", ".cc"] [file_associations.go] extensions = [".go"] +[file_associations.md] +extensions = [".md"] + [theme] background = 0x002649 foreground = 0xf2f4f6 diff --git a/cfg/config_linux.go b/cfg/config_linux.go index 20d0e88..cc3ad65 100644 --- a/cfg/config_linux.go +++ b/cfg/config_linux.go @@ -26,6 +26,9 @@ extensions = [".c", ".h", ".cc"] [file_associations.go] extensions = [".go"] +[file_associations.md] +extensions = [".md"] + [theme] background = 0x002649 foreground = 0xf2f4f6 diff --git a/cfg/config_mac.go b/cfg/config_mac.go index 08cdb6b..8340651 100644 --- a/cfg/config_mac.go +++ b/cfg/config_mac.go @@ -26,6 +26,9 @@ extensions = [".c", ".h", ".cc"] [file_associations.go] extensions = [".go"] +[file_associations.md] +extensions = [".md"] + [theme] background = 0x002649 foreground = 0xf2f4f6 diff --git a/cfg/syntax.go b/cfg/syntax.go index ef637e9..53e4407 100644 --- a/cfg/syntax.go +++ b/cfg/syntax.go @@ -83,4 +83,12 @@ match = [ "=", ":", ";", "*", "&", "+", "-", "/", "%", "^", "#", "!", "@", "<", ">", ".", "," ]`) + + RegisterSyntax("md", `[syntax.md] +[syntax.header] +colouring = 0xff00ff +pattern = '(?m)^#{1,6}.*' +`) + + // your syntax here! }