com.uwyn.jhighlight.renderer
Class XmlXhtmlRenderer
java.lang.Object
com.uwyn.jhighlight.renderer.XhtmlRenderer
com.uwyn.jhighlight.renderer.XmlXhtmlRenderer
- All Implemented Interfaces:
- Renderer
public class XmlXhtmlRenderer
- extends XhtmlRenderer
Generates highlighted syntax in XHTML from XML source.
RIFE template tags are also
supported and will be clearly highlighted.
- Since:
- 1.0
- Version:
- $Revision: 3108 $
- Author:
- 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
XmlXhtmlRenderer
public XmlXhtmlRenderer()
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.