Class 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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JHighlight

        public JHighlight()
    • 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