Reply to Re: Strip Commentary

Your name:

Reply:


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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация