Table of Contents

Interface ISyntaxHighlighter

Namespace
MarkMyDeck.SyntaxHighlighting
Assembly
MarkMyDeck.dll

Interface for syntax highlighters that tokenize code into colored segments.

public interface ISyntaxHighlighter

Methods

Highlight(string, string)

Highlights code by breaking it into syntax tokens.

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.

bool SupportsLanguage(string language)

Parameters

language string

Returns

bool