C# Class ColorCode.CodeColorizer

Colorizes source code.
Inheritance: ICodeColorizer
Afficher le fichier Open project: Code52/ColourCode Class Usage Examples

Méthodes publiques

Méthode Description
CodeColorizer ( ) : System.IO

Initializes a new instance of the CodeColorizer class.

CodeColorizer ( ILanguageParser languageParser ) : System.IO

Initializes a new instance of the CodeColorizer class.

Colorize ( string sourceCode, ILanguage language ) : string

Colorizes source code using the specified language, the default formatter, and the default style sheet.

Colorize ( string sourceCode, ILanguage language, IFormatter formatter, IStyleSheet styleSheet ) : string
Colorize ( string sourceCode, ILanguage language, IFormatter formatter, IStyleSheet styleSheet, TextWriter textWriter ) : void

Colorizes source code using the specified language, formatter, and style sheet.

Colorize ( string sourceCode, ILanguage language, TextWriter textWriter ) : void

Colorizes source code using the specified language, the default formatter, and the default style sheet.

Method Details

CodeColorizer() public méthode

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

CodeColorizer() public méthode

Initializes a new instance of the CodeColorizer class.
public CodeColorizer ( ILanguageParser languageParser ) : System.IO
languageParser ILanguageParser The language parser that the instance will use for its lifetime.
Résultat System.IO

Colorize() public méthode

Colorizes source code using the specified language, the default formatter, and the default style sheet.
public Colorize ( string sourceCode, ILanguage language ) : string
sourceCode string The source code to colorize.
language ILanguage The language to use to colorize the source code.
Résultat string

Colorize() public méthode

public Colorize ( string sourceCode, ILanguage language, IFormatter formatter, IStyleSheet styleSheet ) : string
sourceCode string
language ILanguage
formatter IFormatter
styleSheet IStyleSheet
Résultat string

Colorize() public méthode

Colorizes source code using the specified language, formatter, and style sheet.
public Colorize ( string sourceCode, ILanguage language, IFormatter formatter, IStyleSheet styleSheet, TextWriter textWriter ) : void
sourceCode string The source code to colorize.
language ILanguage The language to use to colorize the source code.
formatter IFormatter The formatter to use to colorize the source code.
styleSheet IStyleSheet The style sheet to use to colorize the source code.
textWriter System.IO.TextWriter The text writer to which the colorized source code will be written.
Résultat void

Colorize() public méthode

Colorizes source code using the specified language, the default formatter, and the default style sheet.
public Colorize ( string sourceCode, ILanguage language, TextWriter textWriter ) : void
sourceCode string The source code to colorize.
language ILanguage The language to use to colorize the source code.
textWriter System.IO.TextWriter The text writer to which the colorized source code will be written.
Résultat void