Class ColorCodeHighlighter
- Namespace
- MarkMyDeck.SyntaxHighlighting
- Assembly
- MarkMyDeck.dll
Syntax highlighter using ColorCode.Core for JSON and other common languages.
public class ColorCodeHighlighter : ISyntaxHighlighter
- Inheritance
-
objectColorCodeHighlighter
- Implements
Methods
Highlight(string, string)
Highlights code by breaking it into syntax tokens.
public IEnumerable<SyntaxToken> Highlight(string code, string language)
Parameters
codestringlanguagestring
Returns
- IEnumerable<SyntaxToken>
SupportsLanguage(string)
Checks if this highlighter supports the specified language.
public bool SupportsLanguage(string language)
Parameters
languagestring
Returns
- bool