Page 1 of 1

Code formatting

Posted: Wed Nov 02, 2005 5:29 pm
by Guest
I've just started using php-residence after evaluating several php hotel systems for a hotel website, and I'd like to congratualte Marco on a truly excellent piece of software. Everytime I try to configure it to do something which I know the site will need I find you've already thought of it. On top of that a concise and well thought out interface and I'm really very impressed.

Only one criticism if I may, can I make a plea for your source to be formated and indented? I find it very difficult to follow with no indents (and not speaking italian doesn't help :? ). I've tried auto formatting it in PHP Designer but without much success (but maybe I'm missing an obvious tool that can reformat it?)

Kevin

Posted: Fri Nov 04, 2005 12:11 am
by marco
Hi Kevin,
as you have noticed I really don't like indentation... until now I thoght this wasn't a problem for others because there were many tools for reformatting php code, but doing some searches on google I've found only a shareware at http://www.textrush.com/. It works only on windows, so I haven't tried it.
Let me know if it works, or maybe somebody reading this forum knows a better solution.

Marco

Posted: Fri Nov 04, 2005 7:24 pm
by jmesam
You could try Beauty PHP, it's a PHP script that tries to reformat and beautify PHP source code files automatically. It's Open Source.

I don't try it yet.

http://www.bierkandt.org/beautify/

Jorge

Posted: Sat Nov 05, 2005 6:50 pm
by Guest
Hi Jorge,
I've tried it and it seems to do its job. I've had only a problem uploading big files, but I think that's a problem with the configuration of apache and php.

Marco