homepage Welcome to WebmasterWorld Guest from 50.19.172.0
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / WYSIWYG and Text Code Editors
Forum Library, Charter, Moderator: open

WYSIWYG and Text Code Editors Forum

    
Editors that formats PHP Code
AjayDSouza

5+ Year Member



 
Msg#: 1380 posted 7:44 am on Feb 20, 2006 (gmt 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.

 

dareRock

5+ Year Member



 
Msg#: 1380 posted 2:16 pm on Feb 28, 2006 (gmt 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.

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

Again, this is just a guess.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / WYSIWYG and Text Code Editors
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved