Class CppXhtmlRenderer

  • All Implemented Interfaces:
    Renderer, 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)
    • Field Detail

      • DEFAULT_CSS

        public static final HashMap DEFAULT_CSS
    • Constructor Detail

      • CppXhtmlRenderer

        public CppXhtmlRenderer()
    • Method Detail

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