I have heard you could use Xcode for PHP development with syntax highlighting, syntax check, code completion etc. some time ago, maybe years ago.

Is there a way to add PHP support to a current Xcode version (3.2.2 or later)?

Currently I use NetBeans for PHP development and I've tried some other IDEs. I just like Xcode and wondered if this is an option, too.

link|improve this question
1  
Why in the world was this migrated from SO? – Nifle Mar 19 '10 at 12:27
2  
Why in the world would anybody want to use Xcode for web development? – Hasaan Chop Mar 19 '10 at 20:33
feedback

migrated from stackoverflow.com Mar 19 '10 at 12:15

This question came from our site for professional and enthusiast programmers.

3 Answers

While I'm sure there's a way to do it, I would stick to a traditional text editor like TextMate or BBEdit for PHP.

They are lighter, and more full featured the Xcode in this particular area. Xcode is applications development specific, with all the bells and whistles you need from a true IDE. It's not cut out for PHP programming or web development in general.

link|improve this answer
feedback

While I have not used Xcode yet, Apple has a developer article about using Xcode for PHP development:

http://developer.apple.com/internet/scripting/phpappledevtools.html

I personally prefer using Coda for most day to day HTML/CSS coding or a full IDE such as NetBeans or Eclipse when needed.

link|improve this answer
1  
contrary to most Apple products, Xcode doesn't follow the [lowercase][upercase][lowercase]* format - it is "Xcode", not "xCode" – roviuser Mar 30 '11 at 17:47
Thanks for the note. I've updated my response. – Ryan Apr 18 '11 at 2:46
feedback

Although this question is now a bit old, I just needed to do a little PHP editing myself using Xcode 4. To turn syntax highlighting on for PHP (and lots of other) file types, all you have to do is open the file in Xcode 4, then select Editor->Syntax Coloring->PHP. Sweet!

link|improve this answer
feedback

Your Answer

 
or
required, but never shown