Table of Contents

Class ColorCodeHighlighter

Namespace
MarkMyDeck.SyntaxHighlighting
Assembly
MarkMyDeck.dll

Syntax highlighter using ColorCode.Core for JSON and other common languages.

public class ColorCodeHighlighter : ISyntaxHighlighter
Inheritance
object
ColorCodeHighlighter
Implements

Methods

Highlight(string, string)

Highlights code by breaking it into syntax tokens.

public IEnumerable<SyntaxToken> Highlight(string code, string language)

Parameters

code string
language string

Returns

IEnumerable<SyntaxToken>

SupportsLanguage(string)

Checks if this highlighter supports the specified language.

public bool SupportsLanguage(string language)

Parameters

language string

Returns

bool