PHP Software - Automatic Indention

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Superman859
Forum Commoner
Posts: 47
Joined: Sun Oct 29, 2006 10:22 am

PHP Software - Automatic Indention

Post by Superman859 »

I looked elsewhere but this seems to be the closest forum for the post.

I've recently started studying PHP and MySQL.

Does anyone have any recommendations on which software to use when coding PHP? I come from having a strong foundation in Java and personally like the software that colors everything, automatically indents, and shows which brackets go together (usually by highlighting the area).

I have Dreamweaver, which I've been using so far for PHP, but it doesn't seem to automatically indent (unless that is a preference). One other thing that makes it more difficult for me is it does not color between curly brackets.

For example, in a lot of software for Java, if I click next to the final curly bracket, it highlights everything in between it and the opening bracket. This is helpful when you start nesting statements in case you accidentally leave off a bracket somewhere.

if (true)
{
print something;
}

Dreamweaver doesn't mark which brackets go together or indent automatically (default anyways - I looked for a preference but couldn't find anything).

I only ask because I recently ran into a parse error. The error was said to be on line 65 or so, but it was actually a missing bracket back in the around line 20 I believe. The parse error wasn't very helpful, so I had to search the whole thing to find the error.

Does anyone have any recommendations?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

There's a thread dedicated to editors .. many editors support highlighting and automated indentations.
_ca_
Forum Newbie
Posts: 12
Joined: Wed Oct 25, 2006 4:38 pm

Post by _ca_ »

Hi.

I recommend Eclipse. It's a very strong IDE for PHP. It knows your own class- an variablenames an helps you a lot.

Just download "easyeclipse LAMP": http://www.easyeclipse.org/site/distrib ... index.html, create a new project and start coding :)

Greetings, Chris
Superman859
Forum Commoner
Posts: 47
Joined: Sun Oct 29, 2006 10:22 am

Post by Superman859 »

Thanks! That's all I needed! I will look over that thread and see what everyone enjoys.
Post Reply