GTRONICK / juncomment

Removes comments from Java, C, C++, HTML, js, and other compatible formats with C like comments, with CDATA validation.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

------------------------------------------------------------------------------------------------
                                           JUNCOMMENT 1.1
------------------------------------------------------------------------------------------------

  This application deletes C comments like // and /**/, and xml comments like <!--  --> in the
  file, or  files inside the specified folder.

------------------------------------------------------------------------------------------------

  USAGE: java -jar juncomment.jar [OPTION] INPUT_FILE_OR_FOLDER [OUTPUT_FILE_OR_EXTENSION]

  OPTIONS:

    -d  (duplicate) Deletes the comments in the input file and generates an output file.

    -s  (self) Deletes the comments in the input file and overwrites it.

    -f  (folder) Like -s, but for all the files inside the specified folder that match
        the especified extension.

    -r  (recursive) Like -f, but also for subfolders in a recursive fashion.

  Examples:

  java -jar juncomment.jar -d "C:\Documents\file_in.xhtml" "C:\Documents\file_out.xhtml"

  java -jar juncomment.jar -s "C:\Documents\file_in.xhtml"

  java -jar juncomment.jar -f "C:\Folder" "java"

  java -jar juncomment.jar -r "C:\Folder" "xhtml"

About

Removes comments from Java, C, C++, HTML, js, and other compatible formats with C like comments, with CDATA validation.

License:MIT License


Languages

Language:Java 100.0%