Java2HTMLFilter is used to syntax highlight the code wrapped in a \{\{\{ ... \}\}\} pair. Currently it treats the content inside as a java source snippet. It utilizes the Java2Html libary by MarkusGebhard, the author of [Java2HtmlPlugin]. So the rendering result is the same as his sample.

The difference between this filter and [Java2HtmlPlugin] is that it only renders one part of a page. The other parts are not affected.

__TODO__: More languages are expected to be supported, such as .properties, xml/html, jython. With Java2HtmlPlugin, the most difficult language is done easily. The others are quite simple but need more codings.

To beautify the converted result, you may need to change/add some CSS entries. My CSS is as follows:
{{{
    div.java {
        margin-left: 20px;
        margin-top: 5px;
        margin-bottom: 5px
    }
 
    div.java td {
        background: ivory;
    }
}}}

Don't forget to add a line to your jspwiki.properties file:

jspwiki.pageFilter.100 = org.simon.jspwiki.filters.Java2HTMLFilter


!!Question

I've done all things, it does not work. :(