PDA

View Full Version : Gedit and brackets (php)



Orange Kingdom
May 30th, 2011, 03:24 PM
Hi,

How can gedit display the brackets in a nice order (with vertical lines) like notepad++ ?

like: if () {

### }

not: if () {

}


If i use brackets in gedit it becomes a mess.


thnx

simeon87
May 30th, 2011, 03:41 PM
There is a plugin which automatically adds a bracket when you type one. Hopefully it places them the way you want: link (http://live.gnome.org/GeditPlugins).

Orange Kingdom
May 30th, 2011, 04:00 PM
unfortunately it adds only a bracket. No nice placement of the bracket.

simeon87
May 30th, 2011, 05:10 PM
unfortunately it adds only a bracket. No nice placement of the bracket.

Then I wouldn't know if it's possible in gedit. It would be a nice feature for a plugin though.

Petrolea
June 1st, 2011, 09:24 PM
Maybe try some other editor? There are tons, one of them should be able to do this.

r-senior
June 1st, 2011, 09:30 PM
Don't you just need to enable automatic indent?

Edit -> Preferences -> Editor -> Enable automatic indentation