com.uwyn.jhighlight.renderer
Class CppXhtmlRenderer
java.lang.Object
com.uwyn.jhighlight.renderer.XhtmlRenderer
com.uwyn.jhighlight.renderer.CppXhtmlRenderer
- All Implemented Interfaces:
- Renderer
public class CppXhtmlRenderer
- extends XhtmlRenderer
Generates highlighted syntax in XHTML from Cpp source.
- Version:
- $Revision: 0$
- Author:
- Arnout Engelen (arnouten[remove] at bzzt dot net), Geert Bevin (gbevin[remove] at uwyn dot com)
Method Summary |
protected String |
getCssClass(int style)
Looks up the CSS class identifier that corresponds to the syntax style. |
protected Map |
getDefaultCssStyles()
Returns a map of all the CSS styles that the renderer requires,
together with default definitions for them. |
protected ExplicitStateHighlighter |
getHighlighter()
Returns the language-specific highlighting lexer that should be used |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_CSS
public static final HashMap DEFAULT_CSS
CppXhtmlRenderer
public CppXhtmlRenderer()
getDefaultCssStyles
protected Map 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 class XhtmlRenderer
- Returns:
- The map of CSS styles.
getCssClass
protected String getCssClass(int style)
- Description copied from class:
XhtmlRenderer
- Looks up the CSS class identifier that corresponds to the syntax style.
- Specified by:
getCssClass
in class XhtmlRenderer
- Parameters:
style
- The syntax style.
- Returns:
- The requested CSS class identifier; or
null
if the syntax style isn't supported.
getHighlighter
protected ExplicitStateHighlighter getHighlighter()
- Description copied from class:
XhtmlRenderer
- Returns the language-specific highlighting lexer that should be used
- Specified by:
getHighlighter
in class XhtmlRenderer
- Returns:
- The requested highlighting lexer.
Copyright © 2004-2006 Uwyn bvba/sprl and Omnicore Software. All Rights Reserved.