Package com.uwyn.jhighlight
Class JHighlight
- java.lang.Object
-
- com.uwyn.jhighlight.JHighlight
-
public class JHighlight extends java.lang.Object
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 Constructor Description JHighlight()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static void
highlightFile(java.lang.String name, java.io.File in, java.io.File out, java.lang.String encoding, boolean fragment, boolean verbose)
static void
main(java.lang.String[] arguments)
-
-
-
Method Detail
-
main
public static void main(java.lang.String[] arguments) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
highlightFile
private static void highlightFile(java.lang.String name, java.io.File in, java.io.File out, java.lang.String encoding, boolean fragment, boolean verbose) throws java.io.IOException
- Throws:
java.io.IOException
-
-