Re: Code formatter
| From: | Ken Guest | Date: | Wed, 02 Feb 2011 17:11:57 +0000 |
| Subject: | Re: Code formatter | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-311131@lists.php.net to get a copy of this message | ||
replies inline...
On Wed, Feb 2, 2011 at 3:23 PM, Hansen, Mike <Mike.Hansen@atmel.com> wrote:
>
>
> > -----Original Message-----
> > From: ken.guest@gmail.com [mailto:ken.guest@gmail.com] On
> > Behalf Of Ken Guest
> > Sent: Monday, January 31, 2011 3:26 PM
> > To: Hansen, Mike
> > Cc: php-general@lists.php.net
> > Subject: Re: [PHP] Code formatter
> >
> >
> >
> > On Mon, Jan 31, 2011 at 8:27 PM, Hansen, Mike
> > <Mike.Hansen@atmel.com> wrote:
> >
> >
> > I've got an application that I'm fixing up and I'd like
> > to run it through a code formatter. Is there something like
> > Perl Tidy for PHP? If so, what are you experiences with it.
> > No prob running it on the command line. It'd be great if it
> > followed the PEAR coding standards.
> >
> >
> >
> >
> > Have you found http://pear.php.net/package/PHP_Beautifier
> > yet? ;) <http://www.php.net/unsub.php>
> >
> >
> > Ken
> >
>
> It mostly works ok. Unfortunately, there's a bug in it that removes blank
> lines.
>
> I found this one that seems to work:
> http://beta.phpformatter.com/
>
> I'd rather have one I can run on the command line, but this will have to
> do.
>
Just spotted that bug is reported at
http://pear.php.net/package/PHP_Beautifier/bugs
- it's a shame it's been
logged since 2007 or so with no sign of it getting fixed. :(
--
http://blogs.linux.ie/kenguest/