beautypg.com

Add files or folders to a site structure, Scan a site for file extensions, Insert code using the coding toolbar – Adobe Dreamweaver CC 2015 User Manual

Page 381

background image

374

Coding

Last updated 6/3/2015

3

Specify a new name for the structure and click Rename.

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.

Add files or folders to a site structure

You can add any files or folders that are associated with your framework. After that, you can specify the file extensions
of the files you want to scan. (See the next section.)

1

Click the plus (+) button above the Files window to open the Add File/Folder dialog box.

2

In the Add File/Folder text box, enter the path to the file or folder you want to add. You can also click the folder icon
next to the text box to browse to a file or folder.

3

Click the plus (+) button above the Extensions window to specify the file extensions of files you want to scan.

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

4

Click Add.

Scan a site for file extensions

Use the Find Extensions dialog box to view and edit file extensions that are included in the site structure.

1

In the Site-Specific Code Hints dialog box, click the Extensions button.

The Find Extensions dialog box lists the current scannable extensions.

2

To add another extension to the list, click the plus (+) button above the Extensions window.

3

To delete an extension from the list, click the minus (-) button.

Insert code using the Coding toolbar

1

Make sure you are in Code view (View > Code).

2

Position the insertion point in the code, or select a block of code.

3

Click a button in the Coding toolbar, or select an item from a pop-up menu in the toolbar.

To find out what each button does, position the pointer over it until a tooltip appears. The Coding toolbar displays
the following buttons by default:

Open Documents

Lists the documents that are open. When you select one, it is displayed in the Document window.

Show Code Navigator

Displays the Code Navigator. For more information, see

Navigate to related code

.

Expand All

Restores all collapsed code.

Select Parent Tag

Selects the content and surrounding opening and closing tags of the line in which you’ve placed

the insertion point. If you repeatedly click this button, and your tags are balanced, Dreamweaver eventually selects
the outermost html and /html tags.

Balance Braces

Selects the content and surrounding parentheses, braces, or square brackets of the line in which you

placed the insertion point. If you repeatedly click this button, and your surrounding symbols are balanced,
Dreamweaver eventually selects the outermost braces, parentheses, or brackets in the document.

Line Numbers

Lets you hide or show numbers at the beginning of each line of code.

Word Wrap

Wraps all the text in Code view so that it appears within the defined space of the view.

Highlight Invalid Code

Highlights invalid code in yellow.