Class GroovyXhtmlRenderer

java.lang.Object
com.uwyn.jhighlight.renderer.XhtmlRenderer
com.uwyn.jhighlight.renderer.GroovyXhtmlRenderer
All Implemented Interfaces:
Renderer

public class GroovyXhtmlRenderer extends XhtmlRenderer
Generates highlighted syntax in XHTML from Groovy source.
Since:
1.0
Version:
$Revision: 3108 $
  • Field Details

    • DEFAULT_CSS

      public static final HashMap DEFAULT_CSS
  • Constructor Details

    • GroovyXhtmlRenderer

      public GroovyXhtmlRenderer()
  • Method Details

    • 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.