Link to home
Start Free TrialLog in
Avatar of Eaddy Barnes
Eaddy BarnesFlag for United States of America

asked on

whats a good php editor which does auto formating

I am looking for a good php editor which does auto formating.  it really help my scripting speed when the functions and sub function are indented nicly into there places
!
both free and paid for software are welcome

thank you for your time
ASKER CERTIFIED SOLUTION
Avatar of Loganathan Natarajan
Loganathan Natarajan
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
And one more editor is netbeans  .. try it, http://netbeans.org/features/php/
Avatar of phutsa
phutsa

I prefer Eclipse editor. but you can use both editor and determine with yourself whcih one is suit for you.
Im usin Dreamweaver, not only is it a php editor, it make web developemt much easier with build in ftp tools and many other features.
I don't thing any of the IDE will format the exiting code automatically.

I have used PHP Code Beautifier. This is very nice tool to use.  See the below URL for more details.

http://www.waterproof.fr/products/phpCodeBeautifier/

There is one more tool called PHP Code Sniffer (PHPCS), It is a PEAR package. This  tool is used detect violations of a defined coding standard

http://pear.php.net/manual/en/package.php.php-codesniffer.php
Eclipse. Definetely. Not only a code formatting but also an autocorrect syntax and many more.
Sounds like an ad. :P
I should add... PHPEdit (http://www.phpedit.com) which is developed by Waterproof (http://www.waterproof.fr) has the CodeBeautifier plugin built in.
It also supports auto-documentation, and a bunch of other useful tools like code-insight, automatic re-factoring, project/object outline etc.

I've tried Dreamweaver, Eclipse, NetBeans, Zend Studio, Aptana, and PHPEd (Nusphere).

The only two that came close was PHPEd and Aptana, but Aptana removed the better PHP components of their custom ide, and PHPEd is pretty expensive (comparatively).

PHPEdit is the best I've worked with so far.
Use eclipse industry standard
I would opt for Eclipse, if I had to choose, because it is what most of my colleagues suggest.  However the real answer for a lot of us is that we develop good syntax habits and coding standards that are appropriate to our work environment.  I do my work in Textpad and Notepad++.  Notepad++ can do color highlighting and code folding.  Some projects have different coding standards than others, and no one-size-fits-all solution may be available.  So try out the suggestions offered here and find the one that works best for your habits and requirements.  Best regards, ~Ray