Operation Manual

Table Of Contents
394
Coding
Last updated 11/30/2015
2 Enter a name for the snippet.
Note: Snippet names can’t contain characters that are invalid in filenames, such as slashes(/ or \), special characters, or
double quotes (“).
3 (Optional) Enter a text description of the snippet. This makes it easier for other team members to use the snippet.
4 (Optional) Select a Preview Type: Code or Design.
Design Renders the code and displays it in the Preview pane of the Snippets panel.
Code Displays the code in the Preview pane.
5 Click OK.
Edit or delete a code snippet
?
In the Snippets panel, select a snippet, and click the Edit Snippet button or the Remove button at the bottom of the
panel.
Create code snippet folders and manage code snippets
1 In the Snippets panel, click the New Snippet Folder button at the bottom of the panel.
2 Drag snippets to the new folder or other folders, as desired.
Add or edit a keyboard shortcut for a snippet
1 In the Snippets panel, right-click (Windows) or Control-click (Macintosh) and select Edit Keyboard Shortcuts.
The Keyboard Shortcuts Editor appears.
2 In the Commands pop-up menu, select Snippets.
A list of snippets appears.
3 Select a snippet and assign a keyboard shortcut to it.
For more information, see Customize keyboard shortcuts.
Share a snippet with other members of your team
1 Find the file corresponding to the snippet that you want to share in the Configuration/Snippets folder in the
Dreamweaver application folder.
2 Copy the snippet file to a shared folder on your computer or a network computer.
3 Have the other members of the team copy the snippet file to their Configuration/Snippets folder.
Search for tags, attributes, or text in code
You can search for specific tags, attributes, and attribute values. For example, you can search for all img tags that have
no alt attribute.
You can also search for specific text strings that are within or not within a set of container tags. For example, you can
search for the word Untitled contained in a title tag to find all the untitled pages on your site.
1 Open the document to search in, or select documents or a folder in the Files panel.
2 Select Edit > Find And Replace.
3 Specify which files to search in, and then specify the kind of search to perform, and text or tags to search for.
Optionally, specify replacement text as well. Then click one of the Find buttons or one of the Replace buttons.