[Geany-Users] PHP_Beautifier

Matthew Brush mbrush at codebrainz.ca
Sat Nov 24 19:51:46 UTC 2012


On 12-11-24 04:32 AM, barz040 at yahoo.it wrote:
> Yes, if I run:
> php_beautifier -f /home/user/public_html/input.php -o /home/user/public_html/output.php -l "ArrayNested() NewLines(before=if:switch:while:for:foreach:function:T_CLASS:return:break,after=T_COMMENT) IndentStyles(style=k&r)" it works fine.
>

Try running it same as the Geany version from the command line, ex:

   $ echo "Some PHP Code Here" | php_beautifier -s4 -l "..."
or
   $ cat "some-code-file.php" | php_beautifier -s4 -l "..."

Cheers,
Matthew Brush


More information about the Users mailing list