Java code to "Highlighted Java code" in HTML
This project is used to add pieces of Java code in HTML pages, while having syntax keywords such as "class" and "new" etc..
highlighted. This makes your Java code more readable online, while allowing to use the tool offline.
highlighted. This makes your Java code more readable online, while allowing to use the tool offline.
How to use
The top level class in this project is located in the "JavaToHTML.java" file. When running this class, a form will open with
two text areas. The first area is where we insert the java code to be converted to HTML. The second text area is where the HTML
code is printed. The "CodeHighlightStyle.css" is where the styling information is stored. Please make sure that you add this file
or the code included within it to your site in order to be able to see the actual "highlighting" of your java code.
Finally, and as always, use this code at your own risk.
two text areas. The first area is where we insert the java code to be converted to HTML. The second text area is where the HTML
code is printed. The "CodeHighlightStyle.css" is where the styling information is stored. Please make sure that you add this file
or the code included within it to your site in order to be able to see the actual "highlighting" of your java code.
Finally, and as always, use this code at your own risk.

java_syntax_highlighter.zip | |
File Size: | 8 kb |
File Type: | zip |