Table of Contents

Class BashHighlighter

Namespace
MarkMyDeck.SyntaxHighlighting
Assembly
MarkMyDeck.dll

Custom syntax highlighter for Bash/Shell scripts.

public class BashHighlighter : ISyntaxHighlighter
Inheritance
object
BashHighlighter
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