Save This Page
Home » JBoss-5.1.0 » org » jboss » highlight » renderer » [javadoc | source]
org.jboss.highlight.renderer
public class: JavaXhtmlRenderer [javadoc | source]
java.lang.Object
   com.uwyn.jhighlight.renderer.XhtmlRenderer
      org.jboss.highlight.renderer.JavaXhtmlRenderer
Generates highlighted syntax in XHTML from Java source.
Field Summary
public static final  HashMap DEFAULT_CSS     
Method from org.jboss.highlight.renderer.JavaXhtmlRenderer Summary:
getCssClass,   getDefaultCssStyles,   getHighlighter,   highlight
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jboss.highlight.renderer.JavaXhtmlRenderer Detail:
 protected String getCssClass(int style) 
 protected Map getDefaultCssStyles() 
 protected ExplicitStateHighlighter getHighlighter() 
 public  void highlight(String name,
    InputStream in,
    OutputStream out,
    String encoding,
    boolean fragment) throws IOException 
    Transforms source code that's provided through an InputStream to highlighted syntax in XHTML and writes it back to an OutputStream.

    If the highlighting has to become a fragment, no CSS styles will be generated.

    For complete documents, there's a collection of default styles that will be included. It's possible to override these by changing the provided jhighlight.properties file. It's best to look at this file in the JHighlight archive and modify the styles that are there already.