php - General utility to remove/strip all comments from source code in various languages? -
I am looking for a command line tool that removes all the comments from the input file and returns the sorted output. It would be good if it supports popular programming languages like C, C ++, Python, PHP, Javascript, HTML, CSS, etc. It should be syntax-aware as opposed to the Regxp-based, the pattern in later sources has to be captured, code strings are also there any such device?
I have full knowledge that comments are helpful information and often leave them because they are a good idea. It's just that my focus is on different use cases.
, a free Pearl script can do this.
Remove comments from source code
How can you tell that the clock correctly recognizes the comments? One way to convince yourself is to make the CLOC correct, use your
- strip-comments
option to remove comments and blank rows from files, then compare the origin of the snatch-down files.
This supports it.
Comments
Post a Comment