Tell me more ×
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, Luke, Diago, Dave Rook, Bobby Jan 11 at 9:58

Questions on Super User are expected to relate to computer software or computer hardware within the scope defined in the FAQ. 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 closed questions here.

1 Answer

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++. – Death Jan 11 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 at 9:31

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