You are here: User Guide > Reference > PHP Preferences > Code Gallery Preferences

Code Gallery Preferences

The Code Gallery preferences page allows you to add and edit code galleries. Code Galleries are pre-defined code snippets sites. Code snippets can be used to easily insert pre-defined sections of code into your script.

The Code Gallery Preferences page is accessed from Window | Preferences | PHP | Code Gallery.

Note:

The Code Galley preferences page will only appear as an option if the Code Gallery plugin is installed. See Customizing Zend Studio Using the Welcome Page for information on installing plugins.

code gallery

Code Gallery preferences page

Code snippets can be accessed from the Code Gallery view (Window | Show View | Other | PHP Tools | Code Gallery).

Adding a Code Gallery Site

 

 

Instructions on how to complete a procedure

To add a code gallery site:

  1. Click Add.

  2. Enter the URL of the required code gallery and click OK.

The new site will be added to the list and will be available from the Code Gallery view.

Editing a Code Gallery Site

 

 

Instructions on how to complete a procedure

To edit a code gallery site:

  1. Select the required gallery from the list.

  2. Click Edit.

  3. Change the required information and click OK.

 

Removing a Code Gallery Site

 

 

Instructions on how to complete a procedure

To remove a code gallery site:

  1. Select the required gallery from the list.

  2. Click Remove.

  3. Click OK to apply your settings.

The gallery will be removed from the list and will not longer be accessible from the Code Gallery view.

Note:

The User Code Gallery cannot be edited or removed.

 

 

Related Links:

PHP Preferences

Code Galleries

Using Code Galleries

Inserting Code Snippets into your Script

Creating New Code Gallery Entries

Interacting with Code Gallery Sites

 

 

©1999-2012 Zend Technologies LTD. All rights reserved.