@Test public void test() { final String javaSource = "public class Test { static final String TEST = \"test\"; }"; final String html = JavaHTMLizer.htmlizeFull(javaSource); assertTrue("htmlizeFull", html != null && !html.isEmpty()); }
static String htmlizeFull(final String javaSource) { final String result = htmlize(javaSource); final String start = "<html><body><style>" + "code { font-size: 12px; } " + "code .string { color: blue; } " + "code .comment { font-style: italic; color: green; } " + "code .keyword { font-weight: bold; color: purple; } " + "code .comment .keyword { color: green; font-weight: normal; } " + "code .comment .string { color: green; } " + "</style><code>"; final String end = "</code></body></html>"; return start + result + end; }
JavaHTMLizer { static String htmlizeFull(final String javaSource) { final String result = htmlize(javaSource); final String start = "<html><body><style>" + "code { font-size: 12px; } " + "code .string { color: blue; } " + "code .comment { font-style: italic; color: green; } " + "code .keyword { font-weight: bold; color: purple; } " + "code .comment .keyword { color: green; font-weight: normal; } " + "code .comment .string { color: green; } " + "</style><code>"; final String end = "</code></body></html>"; return start + result + end; } }
JavaHTMLizer { static String htmlizeFull(final String javaSource) { final String result = htmlize(javaSource); final String start = "<html><body><style>" + "code { font-size: 12px; } " + "code .string { color: blue; } " + "code .comment { font-style: italic; color: green; } " + "code .keyword { font-weight: bold; color: purple; } " + "code .comment .keyword { color: green; font-weight: normal; } " + "code .comment .string { color: green; } " + "</style><code>"; final String end = "</code></body></html>"; return start + result + end; } private  JavaHTMLizer(); }
JavaHTMLizer { static String htmlizeFull(final String javaSource) { final String result = htmlize(javaSource); final String start = "<html><body><style>" + "code { font-size: 12px; } " + "code .string { color: blue; } " + "code .comment { font-style: italic; color: green; } " + "code .keyword { font-weight: bold; color: purple; } " + "code .comment .keyword { color: green; font-weight: normal; } " + "code .comment .string { color: green; } " + "</style><code>"; final String end = "</code></body></html>"; return start + result + end; } private  JavaHTMLizer();  }
JavaHTMLizer { static String htmlizeFull(final String javaSource) { final String result = htmlize(javaSource); final String start = "<html><body><style>" + "code { font-size: 12px; } " + "code .string { color: blue; } " + "code .comment { font-style: italic; color: green; } " + "code .keyword { font-weight: bold; color: purple; } " + "code .comment .keyword { color: green; font-weight: normal; } " + "code .comment .string { color: green; } " + "</style><code>"; final String end = "</code></body></html>"; return start + result + end; } private  JavaHTMLizer();   }