Share a snippet with other members of your team, Search for tags, attributes, or text in code, Save and recall search patterns – Adobe Dreamweaver CC 2015 User Manual
Page 392: Save a search pattern, Recall a search pattern
385
Coding
Last updated 6/3/2015
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
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.
4
Click the Close button.
5
To search again without displaying the Find And Replace dialog box, press F3 (Windows) or Command+G
(Macintosh).
Save and recall search patterns
You can save search patterns and reuse them later.
Save a search pattern
1
In the Find And Replace dialog box (Edit > Find And Replace), set the parameters for the search.
2
Click the Save Query button (the disk icon).
3
In the dialog box that appears, navigate to the folder where you want to save queries. Then type a filename that
identifies the query, and click Save.
For example, if the search pattern involves looking for img tags with no alt attribute, you might name the query
img_no_alt.dwr.
Note: Saved queries have the filename extension .dwr. Some saved queries from older versions of Dreamweaver may
have the extension .dwq.
Recall a search pattern
1
Select Edit > Find And Replace.
2
Click the Load Query button (the folder icon).