[phc-general] pretty php request

Paul Biggar paul.biggar at gmail.com
Wed Oct 10 19:57:31 CEST 2007


Hi Arkadiy,

On 10/10/07, Arkadiy Kulev <eth at ethaniel.com> wrote:
> Hello phc-general,
>
>  I was pretty amazed how your program beautified my php script, it
>  sent all the functions directly to the top and tabbed all the other
>  data pretty nicely.

Our pretty printer was updated very nicely a while ago by Matthias
Kleine. As you say, he did a great job.

However, moving functions and classes to move to the top of files
actually changes the meaning of a script, so has been undone our
latest work. We may add an option for this in the future if people
like this.


>  I have 2 requests, if that is possible:
>    1. Add an option to remove the leading tab (the first one at the
>    beginning of the line).
>    2. I have a problem with all brackets "{" and "}" starting at a new line, so

These seem like reasonable requests, the second one in particular.
We're quite busy at the moment, but hopefully I'll find time in the
near future for this. If you have any interest in helping out, let me
know, and I'll tell you where to get started.


Paul

-- 
Paul Biggar
paul.biggar at gmail.com


More information about the phc-general mailing list