Save and recall search patterns, Change code selections – Adobe Dreamweaver CS3 User Manual
Page 328
DREAMWEAVER CS3
User Guide
321
See also
“About regular expressions” on page 304
“Search for and replace text” on page 229
Save and recall search patterns
You can save search patterns and reuse them later.
See also
“About regular expressions” on page 304
“Search for and replace text” on page 229
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).
3
Navigate to the folder where your queries are saved. Then select a query file and click Open.
4
Click Find Next, Find All, Replace, or Replace All to initiate the search.
Change code selections
1
In Code view, select some code and right-click (Windows) or Control-click (Macintosh).
2
Select the Selection submenu, and select any of the following options:
Collapse Selection
Collapses the selected code.
Collapse Outside Selection
Collapses all of the code outside the selected code.
Expand Selection
Expands the selected code fragment.
Collapse Full Tag
Collapses the content between a set of opening and closing tags (for example, the content between
).
Collapse Outside Full Tag
Collapses the content outside a set of opening and closing tags (for example, the content
outside
).
Expand All
Restores all collapsed code.
Apply HTML Comment
Wraps the selected code with
, or opens a new tag if no code is selected.
September 4, 2007