Re: PHP_Beautifier via the command line

From: Date: Wed, 02 Apr 2008 16:03:47 +0000
Subject: Re: PHP_Beautifier via the command line
References: 1 2  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-28733@lists.php.net to get a copy of this message
On Mon, Mar 31, 2008 at 3:46 PM, Richard Quadling <rquadling@googlemail.com> wrote: > On 31/03/2008, Thomas Anderson <zelnaga@gmail.com> wrote: > > According to [1], you can change the new line character(s) with > $oBeautifier > > ->setNewLine("\n");. I would like to make it so that Windows line > feeds are > > used. eg. "\r\n". Is there a way to do this via the command line? > > > > Also, say I wanted a new line to appear after every {. eg. like this: > > > > if (true) > > { > > // do something > > } > > > > How might I do that? I tried the following to no avail: > > > > php_beautifier -t -l "NewLines(after=T_CURLY_OPEN)" -f filename.php -o > > filename.new.php > > > > Any ideas? > > > > [1] > > > > http://beautifyphp.sourceforge.net/docs/PHP_Beautifier/tutorial_PHP_Beautifier.howtouse.script.pkg.html > > > > Would it not be better to have the beautifier use PHP_EOL as the default? > Should I file a bug report on the PHP_EOL thing? Also, any ideas about the new lines thing?

« previous php.pear.general (#28733) next »