Re: auto indentation

From: Date: Tue, 27 Apr 2010 23:00:29 +0000
Subject: Re: auto indentation
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-304687@lists.php.net to get a copy of this message
On 4/27/2010 3:55 PM, Ashley Sheridan wrote:
On Tue, 2010-04-27 at 16:33 -0400, David McGlone wrote:
Hi everyone. I got a quickie LOL is there a way to auto indent code. I'm using Kate and I have it set so the tab is only 4 spaces, but I was wondering if there was an easier way than to have to hit the tab key 1x then 2x then 3x then 2x then 1x to create nice laid out code like this:
I use PHPEclipse for this. It's not Eclipse with PDT, it's PHP Eclipse: http://www.phpeclipse.com/ The code formatter built into that formats my code when I hit Ctrl+Shift+F. No other code formatter works as well for what I've found. Many formatters just indent, this one will reformatt by putting brackets up or down, and reindent all the code to fit my coding standards. Project is getting a little old, though and doesn't yet support PHP 5.3 syntax, but it's still the best I've found. -- Dante ---------- D. Dante Lorenso dante@lorenso.com 972-333-4139

« previous php.general (#304687) next »