JHighlight is a Java library that provides syntax highlighting for several programming languages including Java, C++, HTML, XHTML, and XML. It can be easily embedded into software applications.
JHighlight can be utilized in several ways, including command-line usage to generate highlighted files locally and usage as a servlet filter to highlight source files on your server on-the-fly. The library also has extensive support for RIFE templates tags and neatly highlights them to aid in the identification between the actual marked up source and its markup.
To use JHighlight on the command-line, simply call it using the given syntax: java com.uwyn.jhighlight.JHighlight [--verbose] [--fragment] [-d destdir] [-e encoding] file|dir ... The "--verbose" option outputs messages about the parser, while the "--fragment" option outputs fragments instead of complete documents. The "-d" option specifies the destination directory, while the "-e" option specifies the encoding of the files.
JHighlight's latest release has finalized its API, added support for Groovy and C++ highlighting, and includes multiple contributions to improve embeddability. Overall, JHighlight is an excellent choice for developers who demand a reliable and robust Java syntax highlighting library.
Version 1.0: N/A