[Geany-Users] PHP_Beautifier

Enrico Tröger enrico.troeger at uvena.de
Sat Nov 24 12:54:41 UTC 2012


On 24/11/12 13:32, 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.
> 
> If I run this simple command in Geany:
> sed 's/\./(dot)/g'
> it works fine.
> 
> The string that I use in Geany is this:
> php_beautifier -s4 -l "ArrayNested() NewLines(before=if:switch:while:for:foreach:function:T_CLASS:return:break,after=T_COMMENT) IndentStyles(style=k&r)"
> 
>  but without results.

Just a guess:

Did you select the text before using the command?
That feature completely relies on a text selection, if no text is
selected, nothing happens.

To format a complete file, simply use Ctrl-A before to select all.



Regards,
Enrico

-- 
Get my GPG key from http://www.uvena.de/pub.asc

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: OpenPGP digital signature
URL: <http://lists.geany.org/pipermail/users/attachments/20121124/abf1e362/attachment.pgp>


More information about the Users mailing list