174
Chapter 12 Testing and Maintaining Web Pages
Searching documents
H for Dreamweaver MX provides basic and extended search capabilities.
These enable you to find and replace alphanumeric strings—including regular
expressions—across folders and projects, filter the files to search by file type, select
how tags are processed by the search engine, automatically replace special and
extended characters with their HTML equivalents, make a double-spaced document
single-spaced, select documents to edit or browse from the search results, and more.
This section describes each search capability.
Selecting search text
By selecting text in a document and invoking a search, H for Dreamweaver
MX automatically inserts the selected text into the Find what text box.
In a basic search or replace, if the selected text exceeds 100 characters, no text is
inserted into the Find what box, and H for Dreamweaver MX searches the
selected text instead of the entire document. If you
want
to only replace text within a
selection, you can select the Selection option in the Replace dialog box.
Optionally, you can configure H for Dreamweaver MX so that, when you do
not select any search text, it selects the word nearest to the cursor position and
inserts this word into the Find what box.
To enable nearest word search selection:
•
Select
Options > Settings > Editor > Select nearest word for searches
.
This enables the following behaviors in both basic and extended searches:
−
If no word is highlighted, the word closest to the current cursor position is
inserted in the Find what text box.
−
If the cursor is on a blank line, the search default text will be the nearest word
preceding the position of the cursor.
Saving search text
You can reuse search strings for basic and extended searches, but the method for
saving the search text differs.
To save search text:
•
In a basic search, search text is automatically saved.
•
In an extended search, you can selectively save search text. Click the arrow next to
the Find what box and select Save find text from the pop-up menu.
To use a saved search string in a basic search:
•
Open the drop-down list for the Find what text box and select one of the last ten
search strings.
Summary of Contents for HOMESITE
Page 11: ...Contents xi Table of CommandID values 310 Table of SettingID values 314 Glossary 323...
Page 12: ...xii Contents...
Page 20: ...xx About This Book...
Page 28: ...8 Chapter 1 Setting Up the Product...
Page 70: ...50 Chapter 4 Managing Files...
Page 88: ...68 Chapter 5 Writing Code and Web Content...
Page 116: ...96 Chapter 6 Editing Pages...
Page 148: ...128 Chapter 7 Using Web Development Languages...
Page 190: ...170 Chapter 11 Deploying Files...
Page 210: ...190 Chapter 12 Testing and Maintaining Web Pages...
Page 216: ...196 Chapter 13 Extending the Help System...
Page 350: ...330 Glossary...
Page 358: ...338 Index...