An open API service indexing awesome lists of open source software.

https://github.com/gtronick/juncomment

Removes comments from Java, C, C++, HTML, js, and other compatible formats with C like comments, with CDATA validation.
https://github.com/gtronick/juncomment

Last synced: 3 months ago
JSON representation

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

Awesome Lists containing this project

README

        

------------------------------------------------------------------------------------------------
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"