Package com.uwyn.jhighlight
Class JHighlight
java.lang.Object
com.uwyn.jhighlight.JHighlight
Provides console access to the source code syntax highlighting for Java,
HTML, XHTML, XML and LZX files. The rendering will be done in HTML.
The following file extensions will be processed: .java
,
.html
, .htm
, .xhtml
,
.xml
and .lzx
.
Execute the highlighting with the following syntax:
java com.uwyn.jhighlight.JHighlight [--verbose] [--fragment] [-d destdir] [-e encoding] file|dir ...
--verbose |
Output messages about what the parser is doing. |
--fragment |
Output fragments instead of complete documents. |
-d |
Specify the destination directory |
-e |
Specify the encoding of the files |
RIFE template tags are also supported and will be clearly highlighted.
- Since:
- 1.0
- Version:
- $Revision: 3108 $
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
JHighlight
public JHighlight()
-
-
Method Details
-
main
- Throws:
Throwable
-
highlightFile
private static void highlightFile(String name, File in, File out, String encoding, boolean fragment, boolean verbose) throws IOException - Throws:
IOException
-