[JSPWiki] Sweet Java/HTML/XML syntax coloring
I found
a very nice plugin for JSPWiki this morning: the Java to HTML converter
.
- This tool converts Java source code (files and snipplets) to HTML, RTF, TeX and XHTML with syntax highlighting. It is Open source under the GPL.
I've found that it works for Java, XML and HTML. Here's a couple of examples (I've hooked it into Roller's JSPWiki support):
Java
/**
|
HTML
<html>
|
XML
|
The one thing I don't like is that it centers the code using <center>, adding "center table {width: 100%}" to your stylesheet fixes the issue. I also tried to upgrade Roller's JSPWiki.jar to 2.1.86-alpha (to get XHTML support), but I was getting all kinds of stacktraces from OSCache and it just didn't work. Java2Html also has an Ant Task
to convert Java source to HTML. Java2HTML
has the same thing, but this new one supports different styles
.
NOTE: The above syntax coloring produces invalid XHTML, so this site won't validate for awhile.

