Compiling PHP scripts with XCode

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

  • Related Article

    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.