C# Class Jad_Bot.Utilities.SyntaxHighlighter

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

Public Methods

Method 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.

Protected Methods

Method Description
HighlightSource ( string content ) : string

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

Method Details

Highlight() public method

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

HighlightSource() protected method

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.
return string

SyntaxHighlighter() public method

Initializes a new instance of the SourceColorer class.
public SyntaxHighlighter ( ) : System
return System