C# Class ColorCode.Formatting.HtmlFormatter

Inheritance: IFormatter
Afficher le fichier Open project: Code52/ColourCode Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

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

WriteFooter() public méthode

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

WriteHeader() public méthode

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