Section C.5. Editing a File


C.5. Editing a File

This section describes how to edit a file in Zend Studio.

C.5.1. Editing a File

To edit a file, all you have to do is launch the Zend Studio Client and begin writing code. However, Studio Client makes more advanced editing almost as easy! The following example uses Zend Studio Client's Code Completion featureone of Studio Client's time-saving editing features. Other main editing features also include bookmarks, real-time errors, bracket navigation, templates, and more.

In general, Code Completion automatically displays the relevant list of completion options based on its identifying the code section as PHP or HTML.

Here's an example:

1.

On the main toolbar, click . A new blank document opens in the Editing window.

2.

In the Editing window, type the < character. The Code Completion window appears, displaying a list of HTML tags.

3.

Select html from the list and press Enter. The HTML tag appears in the Editing window.

4.

Type <?php, and press Enter.

5.

Press Ctrl-space then type pri. The PHP Code Completion goes to the next entry matching pri.

6.

Select the print_r function from the Code Completion window and press Enter. print_r appears on the edit line, and the Code Completion window re-displays the function syntax.

7.

Type hello and press Enter.



    PHP 5 Power Programming
    PHP 5 Power Programming
    ISBN: 013147149X
    EAN: 2147483647
    Year: 2003
    Pages: 240

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net