C# Класс Jad_Bot.Utilities.SyntaxHighlighter

A basic implementation of a pretty-printer or syntax highlighter for C# soure code.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
HighlightSource ( string content ) : string

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

Описание методов

Highlight() публичный Метод

Highlights the specified source code and returns it as stylised HTML.
public Highlight ( string source ) : string
source string The source code.
Результат string

HighlightSource() защищенный Метод

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.
Результат string

SyntaxHighlighter() публичный Метод

Initializes a new instance of the SourceColorer class.
public SyntaxHighlighter ( ) : System
Результат System