|
Posted by Andy Hassall on 10/10/15 11:19
On Thu, 23 Jun 2005 18:08:16 -0000, Marcos <mjs_ops@gmx.net> wrote:
>I have one application in php with many lines of commentary created with
>naturaldocs. I wanted to remove this comments when I placed the software
>in production, exist one parser or script that remove this lines.
Yes, PHP can parse itself.
http://uk2.php.net/tokenizer
PHP5 even has a function dedicated to stripping comments.
http://uk2.php.net/php_strip_whitespace
And that references the command-line switch -w to do the same:
http://uk2.php.net/manual/en/features.commandline.php
--
Andy Hassall / <andy@andyh.co.uk> / <http://www.andyh.co.uk>
<http://www.andyhsoftware.co.uk/space> Space: disk usage analysis tool
Navigation:
[Reply to this message]
|