C# 클래스 ExamplesFx.ColorCode.CodeColorizer

Colorizes source code.
상속: ICodeColorizer
파일 보기 프로젝트 열기: MarcosMeli/ExamplesFx 1 사용 예제들

공개 메소드들

메소드 설명
CodeColorizer ( ) : System

Initializes a new instance of the CodeColorizer class.

CodeColorizer ( ILanguageParser languageParser ) : System

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

메소드 상세

CodeColorizer() 공개 메소드

Initializes a new instance of the CodeColorizer class.
public CodeColorizer ( ) : System
리턴 System

CodeColorizer() 공개 메소드

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

Colorize() 공개 메소드

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.
리턴 string

Colorize() 공개 메소드

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.
리턴 void

Colorize() 공개 메소드

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.
리턴 void