Export (0) Print
Expand All

Author PHP by using IntelliSense

After you have set your PHP options, you can use IntelliSense to streamline the process of typing PHP functions and variables in Code view.

For more information, see Set IntelliSense options for PHP.

To insert a PHP function by using IntelliSense

  1. In Code view, in a PHP page, put your cursor where you want to author PHP.

    Cc294943.alert_note(en-us,Expression.10).gifNote:

    Microsoft Expression Web includes a subset of PHP functions and variables. You can specify which functions to include by setting the IntelliSense options. For more information, see Set IntelliSense options for PHP.

  2. To display an IntelliSense shortcut menu for PHP functions, type <?php, and then press CTRL+L.

    Cc294943.alert_note(en-us,Expression.10).gifNote:

    The IntelliSense list of functions will not appear automatically. You must first press CTRL+L.

  3. To locate the PHP function you want to insert into your code, do one of the following:

    • To move through the shortcut menu one item at a time, press the DOWN ARROW key or the UP ARROW key.

    • To move through the shortcut menu one block of visible items at a time, press PAGE DOWN or PAGE UP.

    • To move directly to a particular part of the shortcut menu, type the first letter of the item that you want to go to in the list.

    • To scroll through the list, click the arrows on the vertical scrollbar.

      Cc294943.alert_tip(en-us,Expression.10).gifTip:

      To close the list without inserting any of the shortcut menu items, press ESC or click outside the shortcut menu.

  4. To insert a selected item from the shortcut menu into your code, do one of the following:

    • Press either TAB or ENTER.

    • Double-click the item.

To view information about parameters for PHP functions

  • After inserting the PHP function that you want to use, press SHIFT+CTRL+SPACEBAR to view a tooltip that displays the parameters supported by that function.

To insert a PHP variable by using IntelliSense

  1. In Code view, in a PHP page, put your cursor between the PHP script block start and end tags (for example, <? and ?>).

  2. To display an IntelliSense shortcut menu for PHP variables, type $_.

    Cc294943.alert_note(en-us,Expression.10).gifNote:

    The list of available variables will appear automatically after you type $_.

  3. To locate the PHP variable you want to insert into your code, do one of the following:

    • To move through the shortcut menu one item at a time, press the DOWN ARROW key or the UP ARROW key.

    • To move through the shortcut menu one block of visible items at a time, press PAGE DOWN or PAGE UP.

    • To move directly to a particular part of the shortcut menu, type the first letter of the item that you want to go to in the list.

    • To scroll through the list, click the arrows on the vertical scrollbar.

      Cc294943.alert_tip(en-us,Expression.10).gifTip:

      To close the list without inserting any of the shortcut menu items, press ESC or click outside the shortcut menu.

  4. To insert a selected item from the shortcut menu into your code, do one of the following:

    • Press either TAB or ENTER.

    • Double-click the item.

Community Additions

ADD
Show:
© 2014 Microsoft