you will not get a better text editor than bbedit (pepper is clunky and i keep having it's save-over-ftp conk out on me). the only real substitution on linux is nedit. nedit doesn't do syntax colouring for php out of the box but there is an easy-as-pie patch to add it.