Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I got a php project which I have to develop but problem is last developer didn't care about readability of his work. So I ended up having hundreds of php files which are impossible to read. Look at this: enter image description here

I found this website:http://beta.phpformatter.com/.
I give this website php codes and it gives a clean and well-formatted php coeds to me. I'm looking for some kind of php editor that do this for me.
Any help would be appreciated. Thanks.

share|improve this question

closed as off topic by Zoredache, Canadian Luke, Diago, Dave Rook, Bobby Jan 11 '13 at 9:58

Questions on Super User are expected to relate to computer software or computer hardware within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

1 Answer 1

up vote 2 down vote accepted

NetBeans for PHP got an autoformatter which works quite well with PHP.

Select your whole code, and go to Source > Format (Alt+ Shift + F)

By the way you can customize it from the Options menu in order to fit your code convention (ident, brackets etc.)

share|improve this answer
    
Thanks, I think I will use this instead of Notepad++. –  undone Jan 11 '13 at 9:26
    
I prefer Netbeans because it support PHP 5.3 very well with auto completion on class, namespace etc. But if it fits your needs! –  magnetik Jan 11 '13 at 9:31

Not the answer you're looking for? Browse other questions tagged or ask your own question.