Compile PHP scripts using XCode

Source: Internet
Author: User
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:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.