beautypg.com

Site-specific code hints – Adobe Dreamweaver CC 2014 v.13 User Manual

Page 474

background image

To the top

2. Select Code Hints from the Category list on the left.

3. Set any of the following options:

Close Tags Specifies how you want Dreamweaver to insert closing tags. By default, Dreamweaver inserts the closing tag automatically after
you type the characters )
of the opening tag, or so that no closing tag is inserted at all.

Enable Code Hints Displays code hints while you enter code in Code view. Drag the Delay slider to set the time in seconds before
appropriate hints are displayed.

Enable Description Tooltips Displays an extended description (if available) of the selected code hint.

Menus Sets exactly which type of code hints you want displayed while typing. You can use all or some of the menus.

Site-specific code hints

Dreamweaver CS5 lets developers working with Joomla, Drupal, Wordpress or other frameworks, to view PHP code hints as they write in Code
view. To display these code hints, you first need to create a configuration file using the Site-Specific Code Hints dialog box. The configuration tells
Dreamweaver where to look for code hints that are specific to your site.

For a video tutorial on working with Site-specific code hints, see

www.adobe.com/go/learn_dw_comm13_en

.

Create the configuration file

Use the Site-Specific Code Hints dialog box to create the configuration file needed to display code hints in Dreamweaver.

By default, Dreamweaver stores the configuration file in the Adobe Dreamweaver CS5\configuration\Shared\Dinamico\Presets directory.

Note: The code hints you create are specifically for the site selected in the Dreamweaver Files panel. In order for the code hints to display, the
page you are working on must reside in the currently selected site.

1. Select Site > Site-Specific Code Hints.

By default, the Site-Specific Code Hints feature scans your site to determine which Content Management System (CMS) framework you’re
using. Dreamweaver supports three frameworks by default: Drupal, Joomla, and Wordpress.

The four buttons to the right of the Structure pop-up menu let you import, save, rename, or delete framework structures.

Note: You cannot delete or rename the existing default framework structures.

2. In the sub-root text box, specify the sub-root folder where you store your framework’s files. You can click the folder icon next to the text box

to browse to the framework files’ location.

Dreamweaver displays a file tree structure of folders that contain your framework files. If the folders and/or files you want to scan are all
displayed, click OK to run the scan. If you want to customize the scan, go on to the next steps.

3. Click the plus (+) button above the Files window to select a file or folder that you want to add to the scan. In the Add Files/Folders dialog

box, you can specify particular file extensions that you want to include.

Note: Specifying particular file extensions speeds up the scanning process.

4. To remove files from the scan, select the files you don’t want scanned, and then click the minus (-) button above the Files window.

Note: If Drupal or Joomla is the selected framework, the Site-Specific Code Hints dialog box displays an additional path to a file within your
Dreamweaver configuration folder. Don’t delete this—it’s required when using these frameworks.

5. To customize how the Site-Specific Code Hints feature treats a particular file or folder, select it from the list and do one of the following:

Select Scan This Folder to include the selected folder in the scan.

Select Recursive to include all files and folders within a selected directory.

Click the Extensions button to open the Find Extensions dialog box, where you can specify the file extensions you want included in your
scan for a particular file or folder.

Save site structure

You can save the customized site structure you’ve created in the Site-Specific Code Hints dialog box.

1. Create the structure of files and folders as you want it, adding and deleting files and folders as necessary.

2. Click the Save Structure button in the upper right-hand corner of the dialog box.

3. Specify a name for your site structure and click Save.

Note: If the name you specify is already in use, Dreamweaver prompts you to enter a different name, or to confirm that you want to overwrite the
structure with the same name. You cannot overwrite any of the default framework structures.

Rename site structures

467

This manual is related to the following products: