C# Class ColorCode.Formatting.HtmlFormatter

Inheritance: IFormatter
Mostrar archivo Open project: Code52/ColourCode Class Usage Examples

Public Methods

Method Description
Write ( string parsedSourceCode, IList scopes, IStyleSheet styleSheet, TextWriter textWriter ) : void
WriteFooter ( IStyleSheet styleSheet, ILanguage language, TextWriter textWriter ) : void
WriteHeader ( IStyleSheet styleSheet, ILanguage language, TextWriter textWriter ) : void

Private Methods

Method Description
BuildSpanForCapturedStyle ( ColorCode.Parsing.Scope scope, IStyleSheet styleSheet, TextWriter writer ) : void
GetStyleInsertionsForCapturedStyle ( ColorCode.Parsing.Scope scope, ICollection styleInsertions ) : void
WriteElementEnd ( string elementName, TextWriter writer ) : void
WriteElementStart ( string elementName, Color foreground, Color background, TextWriter writer ) : void
WriteElementStart ( string elementName, TextWriter writer ) : void
WriteHeaderDivEnd ( TextWriter writer ) : void
WriteHeaderDivStart ( IStyleSheet styleSheet, TextWriter writer ) : void
WriteHeaderPreEnd ( TextWriter writer ) : void
WriteHeaderPreStart ( TextWriter writer ) : void

Method Details

Write() public method

public Write ( string parsedSourceCode, IList scopes, IStyleSheet styleSheet, TextWriter textWriter ) : void
parsedSourceCode string
scopes IList
styleSheet IStyleSheet
textWriter System.IO.TextWriter
return void

WriteFooter() public method

public WriteFooter ( IStyleSheet styleSheet, ILanguage language, TextWriter textWriter ) : void
styleSheet IStyleSheet
language ILanguage
textWriter System.IO.TextWriter
return void

WriteHeader() public method

public WriteHeader ( IStyleSheet styleSheet, ILanguage language, TextWriter textWriter ) : void
styleSheet IStyleSheet
language ILanguage
textWriter System.IO.TextWriter
return void