Welcome to WebmasterWorld Guest from

Forum Moderators: open

Message Too Old, No Replies

Editors that formats PHP Code

7:44 am on Feb 20, 2006 (gmt 0)

New User

5+ Year Member

joined:Feb 19, 2006
votes: 0

I'm not sure if I should post this here or in the PHP forum.

But, I have some PHP files which are decently readable.
However, I was wondering if there is some kind of editor available that will automatically format the code neatly adding spaces/tabs etc. to make it more readable and indented.

2:16 pm on Feb 28, 2006 (gmt 0)

Junior Member

10+ Year Member

joined:July 31, 2005
votes: 0

I've never heard of such, but would be interested to see if there was.

If i had to guess, I would say no b/c the editor would have to be able to format HTML as well, since PHP is often embedded within HTML code - moreover, something like this (see below) may be difficult to figure out for the formatter - or the programmer creating the editor.

<? ($i[0]!= '') echo "<th>" : echo "<td>"?>
<? ($i[0]!= '') echo "</th>" : echo "</td>"?>

Again, this is just a guess.