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