Syntax highlighting works in two steps.
-
content/text is parsed using patterns/rules from a syntax definition (e.g.: *:tmLanguage
or *.sublime-syntax
) to assign scope names to tokens.
see: https://www.sublimetext.com/docs/syntax.html
-
colors are assigned to tokens using rules from color schemes (e.g.: *.tmTheme
or *.sublime-color-scheme
).
see: https://www.sublimetext.com/docs/color_schemes.html
I guess, you want to write your own color scheme to highlight markdown files using existing syntax definition?
A color scheme needs to specify rules for whatever is to be highlighted other than plain text.
A list of least scopes, which should be covered by a color schemes can be found at https://www.sublimetext.com/docs/scope_naming.html#minimal-scope-coverage, but way more may be required for a complete color scheme.
To learn more you could have a look at some builtin color schemes of ST or one of MarkdownEditing’s color schemes, which are optimized Markdown files (even though some color choices are questionable).