Re: PHP_Beautifier via the command line

From: Date: Mon, 31 Mar 2008 20:46:47 +0000
Subject: Re: PHP_Beautifier via the command line
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-28716@lists.php.net to get a copy of this message
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? -- ----- Richard Quadling Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731 "Standing on the shoulders of some very clever giants!"

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