Publishers of technology books, eBooks, and videos for creative people

Home > Articles > Web Design & Development > Adobe Dreamweaver

  • Print
  • + Share This
  • 💬 Discuss

Finding Text with a Simple Search

Simple searches in Dreamweaver work pretty much the same way that they do in a word processor. Just enter the text you want to find and the text that you want to replace it with, and away you go. Of course, you don’t have to replace text; if you want you can just use the Find and Replace dialog to find text in one or more files.

To find text

  1. Choose Edit > Find and Replace, or press Ctrl-F (Cmd-F).

    The Find and Replace dialog appears (see grey-a.jpg in the previous section).

  2. From the Find in pop-up menu, choose one of the options for the scope of your search.
  3. From the Search pop-up menu, choose Text.
  4. In the Find field, type the word or phrase that you’re looking for.
  5. Click the Find Next button.

    Dreamweaver finds and highlights the found text. If the scope of the search included more than one page, Dreamweaver opens the first file the text was found within and highlights the text. If the text isn’t found, you’ll get a message to that effect at the bottom of the Find and Replace dialog.

    or

    Click the Find All button.

    Dreamweaver does the search, closes the Find and Replace dialog, and opens the Search tab of the Results panel red-a.jpg.

    04fig41.jpg

    click here to view image

    red-a.jpg The Search tab of the Results panel shows you the filename and matched text when you click the Find All button.

  6. If you clicked Find All in step 5, double-click one of the search results in the Results panel to open it and highlight the found text.

To find the next result

Choose Edit > Find Next, or press F3 (Cmd-G).

Dreamweaver finds and highlights the next result of the search without reopening the Find and Replace dialog.

To find and replace text

  1. Choose Edit > Find and Replace, or press Ctrl-F (Cmd-F).

    The Find and Replace dialog appears.

  2. From the Find in pop-up menu, choose one of the options for the scope of your search.
  3. From the Search pop-up menu, choose Text.
  4. In the Find field, type the word or phrase that you’re looking for.
  5. In the Replace field, type the replacement word or phrase.
  6. Click the Find Next button.

    When Dreamweaver finds the text, it is highlighted.

  7. Click the Replace button.

    Dreamweaver replaces the found text with the contents of the Replace field.

    or

    Click Replace All.

    Dreamweaver warns you that you cannot undo changes made in unopened files. Of course, you can undo changes in any open documents by choosing Edit > Undo. If you still want to make the changes, click Yes.

    Dreamweaver searches through the entire scope of the search, replacing all occurrences of the found text. When it is done, you’ll see a message telling you how many changes it made.

    Use a Replace operation to expand abbreviations and save time while you’re creating pages. For example, let’s say that you’re creating a website about JavaScript. Rather than typing JavaScript again and again while writing the site, just type “JS”; then before you upload the site, do a Find and Replace, changing every occurrence of “JS” to “JavaScript.” You can do the same thing with company names, people’s names, or almost any text that you repeat a lot.

  • + Share This
  • 🔖 Save To Your Account

Discussions

comments powered by Disqus