01: package vqwiki.lex;
02:
03: import de.java2html.Java2Html;
04: import de.java2html.converter.Java2HtmlConversionOptions;
05:
06: /**
07:
08: * @author garethc
09: * Date: Jan 6, 2003
10: * @author <a href="mailto:markus@jave.de">Markus Gebhard</a>
11: * Date: Apr 12, 2003
12: */
13: public class JavaLex implements ExternalLex {
14:
15: public String process(String text) {
16:
17: Java2HtmlConversionOptions options = Java2HtmlConversionOptions
18: .getDefault();
19:
20: options.setShowTableBorder(true);
21:
22: options.setShowLineNumbers(false);
23: return Java2Html.convertToHtml(text, options);
24: }
25: }
|