beautypg.com

Search for and replace text – Adobe Dreamweaver CC 2015 User Manual

Page 258

background image

251

Page content and assets

Last updated 6/3/2015

4

Click OK to set the options.

Search for and replace text

You can use the Find And Replace command to search for text and for HTML tags and attributes in a document or a
set of documents. The Search panel, in the Results panel group, shows the results of a Find All search.

Note: To search for files in a site, use different commands: Locate In Local Site and Locate In Remote Site.

Search for and replace text

1

Open the document to search in, or select documents or a folder in the Files panel.

2

Select Edit > Find And Replace.

3

Use the Find In option to specify which files to search:

Selected Text

Confines the search to the text that’s currently selected in the active document.

Current Document

Confines the search to the active document.

Open Documents

Searches all documents that are currently open.

Folder

Confines the search to a specific folder. After choosing Folder, click the folder icon to browse to and select a

folder to search.

Selected Files In Site

Confines the search to the files and folders that are currently selected in the Files panel.

Entire Current Local Site

Expands the search to all the HTML documents, library files, and text documents in the

current site.

4

Use the Search pop-up menu to specify the kind of search you want to perform:

Source Code

Searches for specific text strings in the HTML source code. You can search for specific tags using this

option, but the Specific Tag search provides a more flexible approach to searching for tags.

Text

Searches for specific text strings in the text of the document. A text search ignores any HTML that interrupts

the string. For example, a search for the black dog would match both the black dog and the black dog.

Text (Advanced)

Searches for specific text strings that are either within or not within a tag or tags. For example, in

a document that contains the following HTML, searching for tries and specifying Not Inside Tag and the i tag would
find only the second instance of the word tries: John tries to get his work done on time, but he doesn’t always
succeed. He tries very hard. .

Specific Tag

Searches for specific tags, attributes, and attribute values, such as all td tags with valign set to top.

Note: Pressing Control+Enter or Shift+Enter (Windows), or Control+Return, Shift+Return, or Command+Return
(Macintosh), adds line breaks within the text search fields, allowing you to search for a Return character. When
performing such a search, deselect the Ignore Whitespace Differences option if you’re not using regular expressions. This
search finds a Return character in particular, not simply the occurrence of a line break; for instance, it doesn’t find a tag
or a tag. Return characters appear as spaces in the Design view, not as line breaks.

5

Use the following options to expand or limit the search:

Match Case

Limits the search to text that exactly matches the case of the text you want to find. For example, if you

search for the brown derby, you will not find The Brown Derby.

Ignore Whitespace

Treats all whitespace as a single space for the purposes of matching. For example, with this

option selected, this text would match this text and this text but not thistext. This option is not available when the
Use Regular Expressions option is selected; you must explicitly write your regular expression to ignore whitespace.
Note that

and
tags do not count as whitespace.