Use XCode to write the PHP script: www. cocoachina. comcmsplusview. php? When writing a PHP script, aid2393 will find that some editors on Mac are good, but they also have their own shortcomings :??? TextMate is very easy to use, but it is quite annoying. even if the display of Chinese characters is modified by modifying the font, the display is a long string of half a word size. use XCode to write a PHP script.
Http://www.cocoachina.com/cms/plus/view.php? Aid = 2393.
When you need to write a PHP script, you will find that some editors on Mac are better, but they also have their own shortcomings:
??? TextMate is very easy to use, but it is also very annoying. even if the Chinese display is modified by modifying the font, the display is a long string of half characters, which is ugly. In contrast, BBEdit is much better, but there is a small problem, the project management window of the directory structure is surfaced, always need to switch back and forth through command +. Coda is better, with a high syntax and a wide range of syntax prompts. However, it is impossible to analyze the classes and functions of the entire project. Therefore, the syntax prompts only the built-in php syntax.
??? In fact, XCode can also edit PHP.
??? By default, XCode does not appear in the open menu of the PHP file. after an empty project is created, the entire directory of the php script is dragged to the new project. Syntax highlighting is available, but the keyword is missing. only built-in keywords such as function and foreach play a highlighted role. However, after a while, XCode can analyze the classes and methods of the entire PHP project, and display them through syntax prompts. The following figure shows the syntax prompt of XCode:
??? I will use it later to find an interesting feature. XCode can also automatically complete the PHP syntax:
??? I am used to XCode and naturally feel more familiar than other editors. Since XCode can also edit PHP, why not use it?
??? Syntax highlighting in other languages supported by XCode is much more. The following is a list: