Writing PHP scripts with XCode
Original: http://www.cocoachina.com/cms/plus/view.php?aid=2393
When you need to write a PHP script, you will find that some of the editors on your Mac are good, but each has its drawbacks:
??? TextMate is very easy to use, but the annoying place is also very obvious, the Chinese display even by changing the way the font changes, the display is also a half word size of the long word, ugly tight. In contrast, BBEdit is much better, but with a small problem, the Project management window of the directory structure is surfaced and always needs to be switched back and forth through command+. Coda feel better, syntax highlighting, syntax hints are readily available, but unable to analyze the entire project's classes and functions, so the syntax hints are only PHP built-in syntax.
??? In fact, XCode can also edit PHP.
??? The default Xcode does not appear in the Open menu of the PHP file, and after an empty project has been built, the entire directory of the PHP script is dragged into the new project. Syntax highlighting has, but the sense of the keyword less, only Function,foreach and other built-in keywords play a role in highlighting. In a few days, however, XCode can analyze the classes and methods in the entire PHP project, and it can be displayed with syntax hints. The following figure is a syntax hint from XCode:
??? To use the back, and find a more interesting feature, XCode can also automatically complete the PHP syntax:
??? Get used to XCode and feel more familiar with nature than other editors. Since XCode can also make PHP edits, why not use it?
??? There are many more syntax highlighting for other languages that XCode supports, and here's a list: