Code formatting

Discuss here how to configure hoteldruid and better use its features.

Moderator: marco

Post Reply
Guest

Code formatting

Post 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
marco
Posts: 1332
Joined: Tue Jul 05, 2005 6:00 pm
Location: Roma, Italia

Post 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
jmesam
Posts: 24
Joined: Wed Aug 31, 2005 10:13 am
Location: Canary Islands, Spain

Post 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
Guest

Post 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
Post Reply