You can use the Project Builder/XCode text editor to edit PHP files, it supports the correct syntax highlighting i beleive. but i tried it (PB) and didnt find any reason to switch from BBEdit. BBEdit is smaller, lighter and aimed more at this sort of thing. PB is aimed at building projects, in "traditional" languages, not web scripts.