C# Class Jad_Bot.Utilities.SyntaxHighlighter

A basic implementation of a pretty-printer or syntax highlighter for C# soure code.
Afficher le fichier Open project: jaddie/WCell-Utility-Bot Class Usage Examples

Méthodes publiques

Méthode Description
Highlight ( string source ) : string

Highlights the specified source code and returns it as stylised HTML.

SyntaxHighlighter ( ) : System

Initializes a new instance of the SourceColorer class.

Méthodes protégées

Méthode Description
HighlightSource ( string content ) : string

Occurs when the source code is highlighted, after any style (CSS) definitions are added.

Method Details

Highlight() public méthode

Highlights the specified source code and returns it as stylised HTML.
public Highlight ( string source ) : string
source string The source code.
Résultat string

HighlightSource() protected méthode

Occurs when the source code is highlighted, after any style (CSS) definitions are added.
protected HighlightSource ( string content ) : string
content string The source code content.
Résultat string

SyntaxHighlighter() public méthode

Initializes a new instance of the SourceColorer class.
public SyntaxHighlighter ( ) : System
Résultat System