Re: Re: Re: [PEAR-DEV] where is php auto indent tool?

From: Date: Thu, 24 May 2001 16:45:22 +0000
Subject: Re: Re: Re: [PEAR-DEV] where is php auto indent tool?
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-479@lists.php.net to get a copy of this message
Roel Vanhout, >Have a look at http://astyle.sourceforge.net/. It is actually >only for >c/c++ and java, but the source code is nicer (a lot nicer) then the >source for gnu indent, so it should be easier to change it to work for Yes.It is wonderful. >php source code. The only problem I have found with c-indenters is that >the <? and <?php tags will be split up to < ? and < ? php ; a possible >solution would be a script that first replaces these tags with some >text, then runs the indenter, and restores the tags. There is no problem in '<?php' when astyle --style=gnu <some.php> > Probably shell-style >comments will be considered preprocessor statements and be indented >wrong, but I never use those so I can't really say. Be sure to let us >know if you have any successes, I'm interested to know, I just haven't >had time yet to look into it myself. There is no problem in comments converts , either '//' or '/*...*/'. The tool is so wonderful, although it seems that astyle can not undersatnd HTML.But it is so good for me. BTW,It is better the program formats souce codes with rules in configure files. Thanks a lot. Young Gift young@nenu.edu.cn

« previous php.pear.dev (#479) next »