Class CppXhtmlRenderer
java.lang.Object
com.uwyn.jhighlight.renderer.XhtmlRenderer
com.uwyn.jhighlight.renderer.CppXhtmlRenderer
- All Implemented Interfaces:
Renderer
Generates highlighted syntax in XHTML from Cpp source.
- Version:
- $Revision: 0$
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetCssClass(int style) Looks up the CSS class identifier that corresponds to the syntax style.protected MapReturns a map of all the CSS styles that the renderer requires, together with default definitions for them.protected ExplicitStateHighlighterReturns the language-specific highlighting lexer that should be usedMethods inherited from class XhtmlRenderer
getCssClassDefinitions, getXhtmlFooter, getXhtmlHeader, getXhtmlHeaderFragment, highlight, highlight
-
Field Details
-
DEFAULT_CSS
-
-
Constructor Details
-
CppXhtmlRenderer
public CppXhtmlRenderer()
-
-
Method Details
-
getDefaultCssStyles
Description copied from class:XhtmlRendererReturns a map of all the CSS styles that the renderer requires, together with default definitions for them.- Specified by:
getDefaultCssStylesin classXhtmlRenderer- Returns:
- The map of CSS styles.
-
getCssClass
Description copied from class:XhtmlRendererLooks up the CSS class identifier that corresponds to the syntax style.- Specified by:
getCssClassin classXhtmlRenderer- Parameters:
style- The syntax style.- Returns:
- The requested CSS class identifier; or
nullif the syntax style isn't supported.
-
getHighlighter
Description copied from class:XhtmlRendererReturns the language-specific highlighting lexer that should be used- Specified by:
getHighlighterin classXhtmlRenderer- Returns:
- The requested highlighting lexer.
-