What's the best way to strip all code comments in a given directory? I'd like to strip out all // ... EOL
comments, and /* blah \*/
(or /** ... \*/
) comments as well.
This is a PHP project, and I'd like to go a little further than what is outlined below, yet for security purposes rather than efficiency.
- Zend Frameword: Documentation Class Loading – Strip require_once calls with find and set.
Best Answer
A quick google search returns a similar question at stackoverflow.