• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 4. Creating and Formatting Text > Finding and Replacing Text

Finding and Replacing Text

Besides the standard find and replace functions you’d expect, FrontPage also lets you search the HTML, which means you can find words, phrases, or even bits of code that may not be visible in the Normal view.

To find text on a single page

1.
If you’re not already in page view, click the Page icon in the Views Bar and make sure the Normal tab is selected.

2.
Make the Folder List visible by choosing View > Folder List or clicking the Folder icon.

3.
Choose Edit > Find (Figure 4.24).

Figure 4.24. To find text on a single page or across an entire Web site, choose Edit > Find.


4.
When the Find tab of the Find and Replace dialog box appears, type in the word or phrase you’re seeking and choose Current Page (Figure 4.25).

Figure 4.25. In the Find and Replace dialog box, type in the word or phrase you’re seeking and choose Current Page. Check any other search criteria and click Find Next.


5.
By default, FrontPage will search in All directions, though you can use the drop-down menu to select Up or Down. Use the checkboxes if you want the search to Match case or Find whole word only. Click Find Next and the first instance of the word or phrase will be found (Figure 4.26).

Figure 4.26. The Find and Replace dialog box remains visible even after the first instance of the word or phrase is found. Click Find Next again to continue searching.


6.
The Find tab of the Find and Replace dialog box will remain visible, allowing you to continue clicking Find Next until you find the instance you’re looking for.

7.
When you’re done searching, click Cancel or the Close button in the dialog box’s upper-right corner.

To find text across a Web site

1.
If you’re not already in page view, click the Page icon in the Views Bar and make sure the Normal tab is selected.

2.
Make the Folder List visible by choosing View > Folder List or clicking the Folder icon.

3.
Choose Edit > Find (Figure 4.24).

4.
When the Find tab of the Find and Replace dialog box appears, type in the word or phrase you’re seeking and choose All pages (Figure 4.27).

Figure 4.27. To search an entire Web site, choose All pages, set your other criteria, and click Find In Web.


5.
By default, FrontPage will search in All directions, though you can use the drop-down menu to select Up or Down. Use the checkboxes if you want the search to Match case or Find whole word only. Click Find In Web.

6.
FrontPage will search through all the pages of the current Web site and list the pages containing the search phrase and how many times it appears on those pages (Figure 4.28).

Figure 4.28. After searching the Web site, FrontPage will list every page with the phrase and how many times it appears. Double-click a page listing to search it.


7.
Double-click on the page listing you’d like to search in detail, and you’ll be taken to the first instance of the search phrase on that page. A basic Find and Replace dialog box also will appear in which you can click Find Next to continue searching the page (Figure 4.29).

Figure 4.29. A standard Find dialog box will appear. Click Find Next to continue searching the individual page.


8.
The next instance of the search phrase on that page will appear. To keep searching, click Find Next again and the next instance will appear (Figure 4.30).

Figure 4.30. To keep searching, continue clicking Find Next. To search another Web page, click the Back to List button and you’ll be returned to the list of pages containing the search phrase.


9.
If you want to see instances of the search phrase on one of the other pages initially listed, click the Find and Replace dialog box’s Back To List button and you’ll be returned to the original search results dialog box (Figure 4.31).

Figure 4.31. To see other pages, click the Find and Replace dialog box’s Back to List button and you’ll be returned to the original search results dialog box.


10.
Double-click any other page in the list and instances of the search phrase on that page will appear.

11.
When you’re done, click Cancel or the Close button in the dialog box’s upper-right corner.

To search the site’s HTML code

1.
If you’re not already in page view, click the Page icon in the Views Bar and make sure the Normal tab is selected.

2.
Choose Edit > Find (Figure 4.24).

3.
When the Find tab of the Find and Replace dialog box appears, type in the word or phrase you’re seeking, choose All pages, and set your other search criteria. Then check the Find in HTML box and click Find in Web (Figure 4.32). FrontPage will list every page where the search phrase appears (Figure 4.33).

Figure 4.32. To search the Web site’s HTMLcode, type in what you’re seeking and choose All pages. Then check the Find in HTML box and click Find in Web.


Figure 4.33. FrontPage will list every page where the search phrase exists—even pages containing invisible HTMLcoding.


4.
Double-click an individual page listing and you’ll be taken to the first instance of the search phrase—even if it’s in normally invisible HTML coding (Figure 4.34).

Figure 4.34. Here’s an example where FrontPage has found the search phrase in an HTMLhyperlink.


5.
Continue to search that page by clicking Find Next or return to other page listings by clicking Back To List. When you’re done, click Cancel or the Close button in the Find and Replace dialog box’s upper-right corner.

Tip

  • If you know the basics of HTML coding, this option offers a quick way to fix or replace coding across an entire Web site. If you don’t understand HTML, this option can get you into deep trouble—fast.


To replace text or HTML on a single page

1.
If you’re not already in page view, click the Page icon in the Views Bar and make sure the Normal tab is selected.

2.
Make the Folder List visible by choosing View > Folder List or clicking the Folder icon.

3.
Choose Edit > Replace (Figure 4.35).

Figure 4.35. To replace text on a single page or the entire site, choose Edit > Replace


4.
When the Replace tab of the Find and Replace dialog box appears, type in the word, phrase, or code you’re seeking in the Find what window, the text or code you want to replace it with in the Replace with window, choose Current Page, and set your other search criteria, such as Find in HTML (Figure 4.36).

Figure 4.36. To replace text or HTMLon a single page, type in the word, phrase, or code you’re seeking, choose Current Page and click Find Next.


5.
Click Find Next and the first instance of the text or code will be found (Figure 4.37).

Figure 4.37. Once you begin the search, FrontPage will display the first instance of the text or code. Click Replace.


6.
Click Replace and FrontPage will make the fix and immediately move to the next instance of the text or code.

7.
Continue clicking the Find Next and Replace buttons until an alert dialog box tells you that FrontPage has finished searching the page. Click OK (Figure 4.38).

Figure 4.38. An alert dialog box appears once FrontPage has finished searching the page. Click OK to see the list of other pages containing the text or code you searched for.


8.
When the Find and Replace dialog box reappears, click Cancel or the Close button in its upper-right corner.

Tip

  • If you’re absolutely sure you want to replace every instance of a search phrase, click Replace All in the Replace tab of the Find and Replace dialog box and the search-and-replace process for the entire page will occur automatically (Figure 4.39).

    Figure 4.39. To automatically replace every instance of the search phrase, click Replace All in the Replace dialog box.


To replace text or HTML across a Web site

1.
If you’re not already in page view, click the Page icon in the Views Bar and make sure the Normal tab is selected.

2.
Make the Folder List visible by choosing View > Folder List or clicking the Folder icon.

3.
Choose Edit > Replace (Figure 4.35).

4.
When the Replace tab of the Find and Replace dialog box appears, type in the text or code you’re seeking in the Find what window, the text or code you want to replace it with in the Replace with window, choose All pages, and set your other search criteria, such as Find in HTML. Click Find In Web (Figure 4.40).

Figure 4.40. To search and replace across an entire Web site, type in the text or code you’re seeking, choose All pages, and click Find In Web.


5.
FrontPage will search through all the pages of the current Web site and list the pages containing the search phrase and how many times it appears in those pages (Figure 4.41).

Figure 4.41. FrontPage will list all the pages in the Web site containing the search phrase and how many times it appears in each page. To see any page, double-click its listing.


6.
Double-click any of the pages listed and you’ll be taken to that page’s first instance of the text or code you’d like to replace (Figure 4.42).

Figure 4.42. Once you double-click a page listing, FrontPage jumps to the page and displays the first instance of the search phrase. To fix it, click Replace.


7.
Click Replace and FrontPage will fix the search phrase and immediately move to the next instance of the phrase (Figure 4.43).

Figure 4.43. After each replace, FrontPage immediately moves to the next instance of the phrase.


8.
When FrontPage has searched and replaced every instance of the phrase on the page, a dialog box will appear asking whether you want to save your changes and close the page (Figure 4.44). Click Back To List to save and close the page and you’ll be returned to the original search results dialog box. The Replace tab of the Find and Replace dialog box marks the page you just searched and replaced as Edited (Figure 4.45).

Figure 4.44. After it has replaced every instance of the phrase on a page, FrontPage asks whether you want to save your changes and close the page. Click Back To List.


Figure 4.45. Once the fixes on a page have been saved, the Find and Replace dialog box will mark the page as Edited. Double-click any other listing to search that page.


9.
Double-click any other page in the list and that page’s instances of the search phrase will appear. Repeat steps 7–9.

10.
When you’re done, click Cancel or the Close button in the dialog box’s upper-right.

  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint