Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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:
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, BinaryMisfit, Dave, 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.

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.)

Eclipse PDT has a pretty good formatter (compatible PSR2).

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 .