Page 1 of 1
class to format code to PEAR coding standard
Posted: Mon Apr 03, 2006 3:02 am
by jmut
Hi,
Do you know of any script class or whatever that would format a code according to PEAR coding standard.
10x in advance.
Posted: Mon Apr 03, 2006 7:53 am
by Roja
http://mysite.wanadoo-members.co.uk/ind ... utify.html
You would have to configure each of the options to match PEAR's coding standards, but it should meet your needs.
Posted: Mon Apr 03, 2006 10:34 am
by jmut
This will not be capble of catching php5 syntax I suppose.
Let alone it says it is for C. I know php is very close to C but still...
Posted: Mon Apr 03, 2006 11:57 am
by Roja
jmut wrote:
This will not be capble of catching php5 syntax I suppose.
Let alone it says it is for C. I know php is very close to C but still...
It is capable of catching php5 syntax, and it does work for PHP - I've used it before.
As I said, it does take time to configure it properly, but it can in fact do what you are looking for.
There is a different project that also can be used, depending on your PHP configuration:
http://www.beautifier.org/
Posted: Mon Apr 03, 2006 1:39 pm
by jmut
Roja wrote:jmut wrote:
This will not be capble of catching php5 syntax I suppose.
Let alone it says it is for C. I know php is very close to C but still...
It is capable of catching php5 syntax, and it does work for PHP - I've used it before.
As I said, it does take time to configure it properly, but it can in fact do what you are looking for.
There is a different project that also can be used, depending on your PHP configuration:
http://www.beautifier.org/
good enough. thanks a lot
Posted: Mon Apr 03, 2006 2:51 pm
by Christopher
As I recall,
GeSHi is one of the better ones.