Chapter 4. Working with Web Page Text

What You’ll Do

Enter and Select Text in a Web Page

Edit Text and Make Corrections

Insert a Line or Paragraph Break

Move and Copy Text

Set Text Indention and Spacing

Set Text Alignment

Insert Symbols and Horizontal Lines

Create Bulleted and Numbered Lists

Create Sublists

Apply Styles

Find and Replace Text

Format Text and Add Text Effects

Access More Colors

Find and Replace Text, Code, or HTML Tags

Check Spelling and Use Custom Dictionaries

Find the Right Words

Change Default Text

Insert Text from a File

Introduction

As you build your Web pages, you’ll find that entering, selecting, correcting, moving, and copying will become commonplace. You can use all of the text functions as you do in any other Microsoft program. With Microsoft Expression Web, you can use all the common moving, deleting, and copying functions that you have already grown accustom to. You can also find and replace and format text just as you would in Word or Excel.

When entering text, you might find it necessary to add a bulleted or numbered list. You can also create sublists and collapsible lists to use on your pages. Choosing the alignment of your text, your line spacing, and paragraph indents all work the same way as other Microsoft programs.

A style is a collection of formatting settings saved with a Web site or template that you can apply to text, graphics, and tables at any time. Expression Web comes with a standard set of styles you can apply to text. If you modify a style, you make the change once, but all text tagged with that style changes to reflect the new format. In Chapter 11, you’ll learn how to create a Cascading Style Sheet (CSS), which is style information that can be referenced by individual or multiple Web pages.

Of course, while working with all of this text, using Expression Web’s spell checker is a must. You can spell check, add familiar or custom words to your dictionary, check for common grammatical errors, or use the Thesaurus to enhance your Web pages. International Microsoft Expression Web users can change the language that appears on their screens by changing the default language settings.

Entering Text in a Web Page

There are two methods of entering text on a Web page: as part of a template or from scratch. When starting out, we strongly recommend that you work from a template. If you are working with templates, you can begin by editing the boilerplate text that opens as part of the template.

Select the template text that you wish to replace and begin typing. The boilerplate text disappears and your text begins flowing into that section of the template. Be sure to constrain your text to the original area provided in the template and, if necessary, edit what you wish to say to make the copy fit within the allotted space.

f04ew01

The other way to enter text is on a blank page. Create a new Web page, and then start typing. When you enter text, Expression Web automatically places text inside a container as an HTML tag. An HTML tag is code inserted in a document that specifies how the document, or a portion of the document, should be formatted. HTML defines the structure and layout of a Web document by using a variety of tags and attributes. The opening tag (<p>) marks the start of the paragraph code and a closing tag (</p>) marks the end of the paragraph, denoted by the forward slash (/). When you select a container, the tag type appears as a tab identifying the container.

f078tab01

Selecting Text in a Web Page

The first step in working with text is to highlight, or select, the text you want. Once you’ve selected it, you can format, replace, delete, copy, and move (cut) words, sentences, and paragraphs within one Web page or between Web pages. When you finish with or decide not to use a selection, you can click anywhere in the page to deselect the text.

Select Text

orange_circle_1.gif Position the pointer in the word, paragraph, line, or part of the page you want to select.

orange_circle_2.gif Choose the method that accomplishes the task you want to complete in the easiest way.

f04ew02

Refer to the table for methods to select text.

f079tab01.gif

Editing Text

You can edit text in Expression Web several ways. First, you can select the text you want to edit, and then type text to replace it or press the Delete key to remove it. Another way to edit text is to place the insertion point in the text, and then type to insert text or press the Backspace or Delete keys to remove it. The Backspace key deletes text to the left, while the Delete key deletes text to the right.

Select and Edit Text

orange_circle_1.gif Select the text you want to edit.

f04ew03

orange_circle_2.gif Perform one of the following editing commands:

  • To replace text, type your text.
  • To delete text, press the Backspace key or the Delete key.

Insert and Edit Text

orange_circle_1.gif Click in the page to place the insertion point where you want to make the change.

f04ew04

  • To insert text, type your text.
  • To delete text, press the Backspace key or the Delete key.

Timesaver Press Ctrl+ Backspace or Ctrl+Delete to delete one word at a time left or right.

Making Corrections

Everyone makes mistakes and changes their mind at some point, especially when creating or revising a document. With Expression Web, you can instantly correct typing errors by pressing a key. You can also reverse more complicated actions, such as typing an entire word, formatting a paragraph, or creating a chart. With the Undo button, if you change your mind, you can just as easily click the Redo button to restore the action you reversed.

Undo or Redo an Action

  • Click the Undo button to reverse your most recent action, such as typing a word, formatting a paragraph, or creating a chart.

f04ew05

Timesaver Press Ctrl+Z to undo.

  • Click the Redo button to restore the last action you reversed.

Timesaver Press Ctrl+Y to redo your undo.

  • Click the Undo button list arrow, and then select the consecutive actions you want to reverse.
  • Click the Redo button list arrow, and then select the consecutive actions you want to restore.

Inserting a Line or Paragraph Break

As you enter or modify text on a Web page, the text automatically wraps within a container to create a paragraph. If you want to create a paragraph, all you need to do is press Enter, which inserts a paragraph break. When you insert a paragraph break, Expression Web automatically creates a new paragraph container, which is denoted with a tab labeled with a p. If you want to insert a line, yet still remain in the same paragraph, you can insert a line break. Sometimes it’s hard to see the difference between a paragraph or line break, so Expression Web provides the option to show or hide formatting marks. In addition to showing or hiding line breaks and paragraph marks, you can also show or hide spaces, comments, script blocks, container position, aligned elements, and other code-related elements.

Show or Hide Line and Paragraph Marks

  • Show or Hide All Formatting Marks. Click the View menu, point to Formatting Marks, and then click Show.
  • You can also click the Show Formatting Marks button on the Standard toolbar.

f04ew07

Timesaver Click Ctrl+Alt+/ to show or hide all formatting marks.

  • Show or Hide Line Breaks. Click the View menu, point to Formatting Marks, and then click Line Breaks.
  • You can also click the Show Formatting Marks button arrow on the Standard toolbar.
  • Show or Hide Paragraph Marks. Click the View menu, point to Formatting Marks, and then click Paragraph Marks.
  • You can also click the Show Formatting Marks button arrow on the Standard toolbar.

Insert a Line Break

  • Click where you want the text to break, and then press Shift+Enter.
  • Click where you want the text to break, click the Insert menu, point to HTML, click Break, click the break option you want, and then click OK.

f04ew08

  • Click where you want the text to break, click the plus sign (+) next to Tags in the Toolbox task pane, and then double-click the Break icon.

Insert a Paragraph Break

  • Click where you want a new paragraph, and then press Enter.
  • Click where you want the text to break, click the Insert menu, point to HTML, and then click Paragraph.
  • Click where you want the text to break, click the plus sign (+) next to Tags in the Toolbox task pane, and then double-click the Paragraph icon.

f04ew09

Moving and Copying Text

Text can be moved and copied in Expression Web just like in other word processing software. You can move or copy text within a Web page, between Web pages, or to another program. When you cut (for a move) or copy text or graphics, Expression Web places it on the Clipboard. To complete the copy or move, you paste the data stored on the Clipboard in another location. You can use the commonly used Paste command or the Paste Text command, which provides options to control line breaks and white space. When you paste an item with the Paste command, the Paste Options button appears allowing you to keep or remove formatting or keep HTML or Text only. When you use the Paste Text command, the Paste Text dialog opens allowing you to select the option you want. To copy or move text or graphics without using the Clipboard, you can use a technique called drag-and-drop. Drag-and-drop makes it easy to copy or move text or graphics short distances on your Web page.

Move or Copy Text Using Drag-and-Drop

orange_circle_1.gif Select the text you want to move or copy.

orange_circle_2.gif To move the text from its current location, drag the selection to the new location, and then release the mouse button.

f04ew10

orange_circle_3.gif To copy the text to a new location, hold down Ctrl and drag the selection to the new location, and then release the mouse button.


Did You Know?

You can copy and paste between documents. You can cut or copy text between pages and even between Expression Web and other Microsoft programs. Switch between programs on the system taskbar at the bottom of the screen.


Move or Copy Text

orange_circle_1.gif Select the text you want to move or copy.

orange_circle_2.gif To move the text from its current location, click the Edit menu, and then click Cut. The text is removed from its current location and placed on the Clipboard.

orange_circle_3.gif To copy the text to a new location, click the Edit menu, and then click Copy. A copy of the text is placed on the Clipboard.

orange_circle_4.gif Click to position the insertion point where you want to place the cut or copied text.

Timesaver The Copy, Cut, and Paste buttons are available on the Standard toolbar.

orange_circle_5.gif Click the Edit menu, and then click one of the following:

  • Paste. Pastes the text and retains the source formatting.
  • Paste Text. Select a paste option in the Paste Text dialog box, and then click OK.

The text is copied from the Clipboard to the new location, but also remains on the Clipboard for future placements.

orange_circle_6.gif If necessary, click the Paste Options button, and then click an option to adjust the pasted item.

f04ew11

f04ew12


Did You Know?

You can turn on or off paste options. Click the Tools menu, click Page Editor Options, click the General tab, select or clear the Show Paste Options buttons check box, and then click OK.


f085tab01.gif

Setting Text Indention and Spacing

Indenting paragraph text allows you to shift text to make it stand out. You can indent text to create an outline or indent the first line of a paragraph. You can use the Increase Indent Position and Decrease Indent Position buttons on the Formatting toolbar to quickly change text position or use the Paragraph dialog box to set more precise positioning. Line spacing is another way to vary the look of a Web page. The lines in a Web page are single-spaced by default, but you can easily change line spacing to double or 1.5 lines to allow extra space between every line. Sometimes, you’ll want to add space above and below certain paragraphs, such as for headlines or indented quotations to help set off the text.

Change Paragraph Indention

orange_circle_1.gif Open and display the Web page you want to use.

orange_circle_2.gif Select the paragraph you want to change.

orange_circle_3.gif Click an indent button on the Formatting toolbar to apply the attribute that you want the selected text.

  • Increase Indent Position button. Increase the indent position to the right.

Timesaver Press Tab to increase the indent position.

  • Decrease Indent Position button. Decrease the indent position to the left.

f04ew13


Did You Know?

You can change character spacing. Select the text you want to change, click the Format menu, click Font, click the Character Spacing tab, click the Spacing list arrow, click Normal, Expanded, or Condensed, click the Position list arrow, click a vertical position option, and then click OK.


Change Paragraph Indents

orange_circle_1.gif Open and display the Web page you want to use.

orange_circle_2.gif Select the paragraph you want to change.

orange_circle_3.gif Click the Format menu, and then click Paragraph.

orange_circle_4.gif Type the space you want indented on the left side of the selected paragraph (in points).

orange_circle_5.gif Type the space you want indented on the right side of the selected paragraph (in points).

orange_circle_6.gif Type the space you want indented before the first line of the selected paragraph (in points).

orange_circle_7.gif Click OK.

f04ew14

Change Line Spacing

orange_circle_1.gif Open and display the Web page you want to use.

orange_circle_2.gif Select the paragraph you want to change.

orange_circle_3.gif Click the Format menu, and then click Paragraph.

orange_circle_4.gif Click the Line Spacing list arrow, and then click the spacing you want.

orange_circle_5.gif Type the space you want to add before (above) each selected paragraph (in points).

orange_circle_6.gif Type the space you want to add after (below) each selected paragraph (in points).

orange_circle_7.gif Click OK.

f04ew15

Setting Text Alignment

Text alignments vary the look of a Web page and help lead the user through the text. You can align text along the left or right margin, in the center, or equally across the page. Left-aligned text works well for body paragraphs in most cases, but other alignments vary the look of a page and help lead the reader through the text. Right-aligned text, which is even along the right margin and ragged at the left margin, is good for adding a date to a letter. Justified text spreads text evenly between the margins, creating a clean, professional look, often used in articles. Centered text is best for titles and headings. You can quickly change text alignment using alignment buttons on the Formatting toolbar.

Change Text Alignment

orange_circle_1.gif Open and display the Web page you want to use.

orange_circle_2.gif Select the text you want to align.

orange_circle_3.gif Click an alignment button on the Formatting toolbar to apply the attribute that you want the selected text.

  • Align Left button. Aligns text along the left margin. The text is uneven along the right margin.
  • Center button. Aligns text in the middle of the page.
  • Align Right button. Aligns text along the right margin. The text is uneven along the left margin.
  • Justify button. Aligns text evenly between the two margins.

f04ew16

Inserting Symbols

Expression Web comes with a host of symbols and special characters for every need. Insert just the right one to keep from compromising a Web page’s professional appearance with a hand-drawn arrow («) or missing mathematical symbol (å). Before you insert a symbol, be aware that not all browsers support all symbols. Be sure to test your pages on several browsers.

Insert Symbols and Special Characters

orange_circle_1.gif Open and display the Web page you want to use.

orange_circle_2.gif Click where you want to insert a symbol or character.

orange_circle_3.gif Click the Insert menu, and then click Symbol.

Timesaver Recently used symbols appear at the bottom of the dialog box.

orange_circle_4.gif To see other symbols, click the Font list arrow, and then click a new font.

orange_circle_5.gif To select a subset, click the Subset list arrow, and then select the subset you want.

  • Some common subsets include Currency symbols, Arrows, and General Punctuation.

orange_circle_6.gif Click a symbol or character.

orange_circle_7.gif Click Insert.

f04ew17

Inserting Horizontal Lines

Horizontal lines have a variety of uses in the construction of a Web page. Whether they’re used to separate sections of a page or to underline an important piece of text, you have several decisions to make. Lines have a variety of properties that you can modify, including width, height, alignment, and color.

Insert a Horizontal Line

orange_circle_1.gif Open and display the Web page you want to use.

orange_circle_2.gif Click where you want to insert a horizontal line.

orange_circle_3.gif Click the Insert menu, point to HTML, and then click Horizontal Line.

  • You can also click the plus sign (+) next to Tags, and then double-click the Horizontal Line icon.

f04ew18

Modify a Horizontal Line

orange_circle_1.gif Open and display the Web page with the horizontal line you want to change.

orange_circle_2.gif Double-click the horizontal line you want to modify.

f04ew19

orange_circle_3.gif Select the formatting options you want.

  • Width. Width of the line. Specified in pixels or as a percentage of the window width.
  • Height. Height of the line in pixels.
  • Alignment. Alignment of the line on the page.
  • Color. Color of the line, unless you want it shaded. If you select a color, shading is no longer an option.
  • Solid Line. Select the check box to create a solid line. Clear it to create a shaded line.

orange_circle_4.gif Click OK.

f04ew20

Creating Bulleted and Numbered Lists

The best way to draw attention to a list is to format the items with bullets or numbers. For different emphasis, you can change any bullet or number style to one of the predefined formats. You can also customize the list style or insert a picture as a bullet. If you move, insert, or delete items in a numbered list, Expression Web sequentially renumbers the list for you. Every time you press Enter, a new bullet will appear. To end a list, press Enter twice.

Create Bulleted and Numbered Lists from Scratch

orange_circle_1.gif Open and display the Web page you want to use.

orange_circle_2.gif Select the text you want to change into a bulleted or numbered list, or click where you want to start a list.

orange_circle_3.gif Click the Bullets or Numbering button on the Common toolbar.

orange_circle_4.gif If you’re starting a list, type the first entry, and then press Enter.

f04ew21

orange_circle_5.gif Type the next entry, and then press Enter.

orange_circle_6.gif To end the list, press Enter twice.


Did You Know?

You can remove bullets or numbering from a list. Select the list with the bullets or numbering, and then click the Bullets or Numbering button on the Common toolbar.


You can add more items to a list. Click at the end of the line above where you want to add an item to the list, and then press Enter. To create a sublist, press Tab.

Change the Format of a Bulleted or Numbered Lists

orange_circle_1.gif Open and display the Web page you want to use.

orange_circle_2.gif Select the list you want to format.

orange_circle_3.gif Click the Format menu, and then click Bullets and Numbering.

f04ew22

orange_circle_4.gif Click the tab (Picture Bullets, Plain Bullets, Numbers, or Other) for the type of change you want to make.

orange_circle_5.gif Click the style change you want.

orange_circle_6.gif Click OK.

f04ew23


Did You Know?

You can insert a custom bullet. Produce a custom bullet, and then save it, preferably in either GIF (.gif) or JPEG (.jpg) format. In Expression Web, place the insertion point at the place where you want to start the list. Click the Format menu, click Bullets and Numbering, click the Picture Bullets tab, click the Specify picture option button, click Browse to locate your creation, double-click a picture, and then click OK. You can proceed as you would with any other bullet style.

You can use the Style list arrow to format a bullets or numbered list. Click the Style list arrow on the Common toolbar, and then click Unordered List <ul> or Ordered List <ol>. An unordered list is a bulleted list, while an ordered list is a numbered list.


Creating Sublists

In addition to the standard bulleted and numbered lists, you can also create indented lists, or sublists. A sublist creates multilevels in a list. You can create a sublist with a bulleted or numbered list. You use the Increase Indent button on the Formatting toolbar to create the multilevels. If you want to insert a line to create a sublist, you can press Tab or use the Increase Indent button.

Create a Sublist List

orange_circle_1.gif Open and display the Web page you want to use.

orange_circle_2.gif Select the text you want to change into a sublist, or click where you want to start the sublist (press Enter to create a new line).

orange_circle_3.gif Click the Increase Indent button on the Formatting toolbar.

  • If you create a new line, you can press Tab to create a sublist.

Expression Web creates a sublist bullet.

orange_circle_4.gif If you’re starting a sublist, type the first entry, and then press Enter.

f04ew24

Applying Styles

A style is a collection of formatting settings saved with a Web site or template that you can apply to text, graphics, and tables at any time. If you modify a style, you make the change once, but all text tagged with that style changes to reflect the new format. Expression Web provides you with Built-In Styles, or you can create your own User-Defined Styles. Both built-in and user-defined styles are available from the same style list while you edit a page. When you create a user-defined style, you can also create an embedded Cascading Style Sheet (CSS), which is style information that is applied to the open Web page.

Apply a Style to Text

orange_circle_1.gif Open and display the Web page you want to use.

orange_circle_2.gif Select the text you want to apply a style.

orange_circle_3.gif Click the Style list arrow on the Common toolbar.

orange_circle_4.gif Click a style from the drop-down list. The default styles include:

  • (None)
  • Paragraph <p>
  • Heading1 <h1> through Heading 6 <h6>
  • Unordered List <ul>
  • Ordered List <ol>
  • Defined Term <dt>
  • Definition <dd>
  • Address <address>
  • Preformatted <pre>
  • Block Quote <blockquote>

f04ew25


Did You Know?

You can remove a style. Select the text, click the Style list arrow on the Common toolbar, and then click (None).


Creating Heading and Definitions

You can use the Styles list arrow on the Common toolbar to quickly format text as a heading or definition list. A heading provides structure for a Web page by providing visual indicator of what is important. The default styles include six different headings, labeled Heading1 <h1> through Heading6 <h6>. Heading1 is the largest size and Heading6 is the smallest size. If you have a list of definitions you want to include in a Web page, you can use the Define Term <dt> and Definition <dd> styles to format the information you want to provide.

Create a Heading

orange_circle_1.gif Open and display the Web page you want to use.

orange_circle_2.gif Select the text you want to change into a heading or subheading.

orange_circle_3.gif Click the Style list arrow on the Common toolbar.

orange_circle_4.gif Click a style (such as Heading 1, Heading 2, etc.) from the drop-down list.

The text is defined with the heading tag associated with it (<h1> to <h6>).

f04ew26

Create a Definition List

orange_circle_1.gif Open and display the Web page you want to use.

orange_circle_2.gif Click to place the insertion point where you want to place a definition.

orange_circle_3.gif Click the Style list arrow on the Common toolbar, and then click Defined Term.

orange_circle_4.gif Type the term name, and then press Enter.

The term is defined with the <dt> tag and the definition is indented.

orange_circle_5.gif Type the definition for the term name, and then press Enter.

f04ew27

The definition is defined with the <dd> tag.

orange_circle_6.gif Type the next term name, press Enter, type the definition, and then press Enter.

orange_circle_7.gif To end the definition list, press Enter twice.

Formatting Text

You’ll often want to format, or change the style of text to add emphasis to part of a Web page. Boldface, italics, underlines, and other text effects are toggle switches, which means you simply click to turn them on and off. For special emphasis, you can apply multiple formats, such as bold and italics. You can also change the font typeface and size. Using one font typeface for headings and another for main text adds a professional look to your Web page.

Format Text Quickly

orange_circle_1.gif Open and display the Web page you want to use.

orange_circle_2.gif Select the text you want to format.

orange_circle_3.gif Click a formatting button on the Common toolbar to apply the attribute you want.

  • Bold button.
  • Italic button.
  • Underline button.
  • Font Color button list arrow, and then select a color.
  • Highlight button list arrow, and then select a color.

f04ew28

Change the Font Quickly

orange_circle_1.gif Open and display the Web page you want to use.

orange_circle_2.gif Select the text you want to format.

orange_circle_3.gif Click the Font list arrow, and then click a font typeface.

f04ew29


See Also

See Chapter 11, “Creating Styles and Layouts with CSS” on page 267 for information on formatting text using cascading style sheets, which provides consistent formatting for Web pages.


Change the Font Size of Text Quickly

orange_circle_1.gif Open and display the Web page you want to use.

orange_circle_2.gif Select the text you want to format.

orange_circle_3.gif Select the font sizing option you want.

  • Click the Font Size list arrow on the Common toolbar, and then click a font typeface.
  • Click the Increase Font Size or Decrease Font Size button on the Formatting toolbar.

f04ew30

Format Text Using the Font Dialog Box

orange_circle_1.gif Open and display the Web page you want to use.

orange_circle_2.gif Select the text you want to format.

orange_circle_3.gif Click the Format menu, and then click Font.

orange_circle_4.gif Select the formatting options you want.

  • Select a font.
  • Select a font style.
  • Select a font size.
  • Select a font color on the Color list.
  • Under Effects, select the effect of your choice, if any.

orange_circle_5.gif Click OK.

f04ew31

Adding Text Effects

Expression Web comes with simple special effects you can quickly add to text on your Web pages. Some of the effects add style to your text, such as Blink or Overline, while others define the type of text, such as Definition or Citation, on your Web pages.

Add Font Effects to Text

orange_circle_1.gif Open and display the Web page you want to use.

orange_circle_2.gif Select the text you want to format.

f04ew32

orange_circle_3.gif Click the Format menu, and then click Font.

orange_circle_4.gif Select or clear the font special effects check boxes. The unique effects to Expression Web include:

  • Overline. Draws a line above the text.
  • Blink. Applies blinking animation to the text.
  • Capitalize. Capitalizes the first letter in each word.
  • Strong. Applies a stronger emphasis to the text.
  • Emphasis. Applies a subtle emphasis to the text.
  • Sample. Applies a fixed width font to the text.
  • Definition. Specifies the text as a definition.
  • Citation. Specifies the text as a reference to other sources.
  • Variable. Specifies the text as a variable or program argument.
  • Keyboard. Specifies the text that is entered by a user.
  • Code. Specifies the text as a programming code.

orange_circle_5.gif Click OK.

f04ew33

Accessing More Colors

Expression Web comes with a standard set of 16 colors. In addition to the standard colors, Expression Web allows you to add more colors to the set for use on your Web pages. More Colors are additional colors that you can add to each color menus—the Font Color button menu, for example. More Colors are useful when you want an object or picture to always have the same color. They are also useful when you want to change the color of an object to a specific color, but the standard colors don’t not have that color. Colors that you add to a specific color menu appear in all color menus and remain in the menu even if the color scheme changes.

Add a Color to the Menus

orange_circle_1.gif Open and display the Web page you want to use.

orange_circle_2.gif Click any color list arrow (such as Font Color button list arrow) to open a color palette.

orange_circle_3.gif Click More Colors on the color palette.

f04ew35

orange_circle_4.gif Do one of the following:

  • Click a color from the expanded palette. Every time you click a color, its corresponding hexadecimal value appears in the Value box.
  • Enter a hexadecimal value in the Value box. An example of such a value would be HEX={99,FF,CC}.
  • To select a color from anywhere on the screen, click Select, and then click any color on the screen.
  • To select a color that represents the color average of an area of the palette, click Select, and then drag the eye dropper cursor to create a box encompassing the colors you want to average.

orange_circle_5.gif Click OK, and then click OK again.

f04ew34

Finding and Replacing Text or Code

Suppose that you discover you have misspelled or want to change a word throughout an entire Web page. You do not need to read through the document to find every instance of the word and manually change it. The Find and Replace commands can do that for you. Expression Web can find every instance for you, and walk you through the Web site from page to page until all the corrections have been made. In addition to text, you can also find and replace code. You can search one or more Web page or an entire Web site. When you search multiple pages, the results appear in a Find task pane.

Find and Replace Text or Code on a Web Page

orange_circle_1.gif In the Folder List, open or select the one or more pages you want to search.

  • To select multiple pages, use Ctrl+click.

orange_circle_2.gif Click the Edit menu, and then click Find.

orange_circle_3.gif Enter the text for which you are searching, or click the Regular expression list arrow, and then select a special character or option.

orange_circle_4.gif If you want to replace the text or code found, click the Replace tab, and then enter the replacement text.

orange_circle_5.gif Click the Current page option.

orange_circle_6.gif Select the search parameters you want (Match case, Find whole word only, etc.).

orange_circle_7.gif Select one of the following buttons:

  • Find All or Find Next button. Locates all instances or the next instance of the text.
  • Replace All or Replace button. Replaces all instances or the selected instance of the text.

orange_circle_8.gif When you’re done, click Close in the dialog box and task pane.

f04ew36

f04ew37

Find and Replace Text or Code on a Web Site

orange_circle_1.gif In the Folder List, open or select the Web site you want to search.

orange_circle_2.gif Click the Edit menu, and then click Find.

orange_circle_3.gif Enter the text for which you are searching.

orange_circle_4.gif If you want to replace the text or code found, click the Replace tab, and then enter the replacement text.

orange_circle_5.gif Click the Selected Pages option or the All Pages option.

orange_circle_6.gif Click Find All.

The list of pages containing the selected word(s) opens in the Find pane at the bottom of the Editing window.

f04ew38

orange_circle_7.gif When Expression Web lists the pages in which the text you’re seeking was found (step four), you can open any of these pages by double-clicking the page from the list. The first instance of the text you’re looking for is highlighted. This text can be replaced via the Replace command.

orange_circle_8.gif To continue searching the page, click the blue Next or Back arrows in the Find pane.

orange_circle_9.gif When you’re done, click Close in the dialog box and task pane.

f04ew39


Did You Know?

You can perform a search on part of a Web page. Perform an initial find with the criteria you want. Click the Edit menu, click Incremental Search, and then click the text you want to search.


Finding and Replacing HTML Tags

In addition to finding and replacing text and code, you can also find and replace HTML tags. The Find and Replace dialog box includes an HTML Tags tab, which you can use to search for and replace HTML tags. You can search one or more Web page or an entire Web site. When you search multiple pages, the results appear in a Find task pane, which makes it easy to view and work with the results in different page view. The Split view allows you to search for tags without having to change your view.

Find and Replace HTML Tags

orange_circle_1.gif In the Folder List, open or select the one or more pages you want to search.

  • To select multiple pages, use Ctrl+click.

orange_circle_2.gif Click the Edit menu, and then click Find.

orange_circle_3.gif Click the HTML Tags tab.

orange_circle_4.gif Click the Find tag list arrow, and then select the tag you want to find.

orange_circle_5.gif If you want to replace the tag, click the Replace action list arrow, select an action, and then specify what you want to replace it with.

orange_circle_6.gif Click the find where and direction options you want.

orange_circle_7.gif Select the search parameters you want (Match case, Find whole word only, etc.).

f04ew40


Did You Know?

You can open the Find and Replace dialog box from the Find pane. Click the green arrow at the top of the Find pane to open the Find and Replace dialog box.


orange_circle_8.gif Select one of the following buttons:

  • Find All or Find Next button. Locates all instances or the next instance of the text.
  • Replace All or Replace button. Replaces all instances or the selected instance of the text.

The list of pages containing the selected tags opens in the Find pane at the bottom of the Editing window.

orange_circle_9.gif When Expression Web lists the pages in which the text you’re seeking was found (step four), you can open any of these pages by double-clicking the page from the list. The first instance of the text you’re looking for is highlighted. This text can be replaced via the Replace command.

orange_circle_10.gif To continue searching the page, click the blue Next or Back arrows in the Find pane.

orange_circle_11.gif When you’re done, click the Close button in the Find pane.

f04ew41


Did You Know?

You can display two different find results. Expression Web provides two Find panes. In the Find and Replace dialog box, you can select the one you want to use. This means you can work with two different find results at the same time.

You can save searches as a query. Perform a search using the Find and Replace dialog box, and then click the Save Query button. To open a previously save query, click the Open Query button.


Checking Spelling

Using Expression Web, you can correct spelling errors on a Web site immediately, or create a task for each page with an error and correct them later. Begin by opening the page whose spelling you want to examine. If you commonly use words unique to a hobby or profession that would not appear in a normal dictionary, or are unlikely to be part of the common vernacular, consider adding them to your dictionary so that they will not repeatedly be called into question during spell checks.

Check Spelling in a Web Page

orange_circle_1.gif Open and display the Web page you want to check, and then click where you want to start checking.

orange_circle_2.gif Click the Tools menu, point to Spelling, and then click Spelling.

The program begins scanning the pages for words that aren’t in its dictionary.

orange_circle_3.gif Click the suggested word or type the correct word, and then click Change. Click Change All to correct all instances of the word.

orange_circle_4.gif If the unrecognized word is correctly spelled but the program doesn’t know it (as with a name, for example), click Ignore to ignore this instance of the word, or click Ignore All to ignore all instances of this word.

orange_circle_5.gif Click Add to add this word to your custom dictionary.

f04ew42

orange_circle_6.gif When the spell checker reaches the end of the document, if it hasn’t searched the beginning, a prompt will ask if you want it to resume the search at the start of the document.

orange_circle_7.gif When you’re done, click OK.

Spell Checking in a Web Site

orange_circle_1.gif If necessary, click the View menu, and then click Folder List to display the Folder List.

orange_circle_2.gif Select the Web site or the pages you want to check. To select multiple pages, click the first page, and then press and hold down Ctrl while clicking the other pages.

orange_circle_3.gif Click the Tools menu, point to Spelling, and then click Spelling.

orange_circle_4.gif Click the Entire Web Site option or the Selected Page(s) option.

orange_circle_5.gif Click Start.

f04ew43

orange_circle_6.gif Double-click the first misspelled word in the list. If a misspelled word needs to be corrected, the Spelling dialog box opens. Otherwise, the Continue With The Next Page? dialog box opens.

orange_circle_7.gif To correct a misspelled word, use the buttons in the Spelling dialog box to change or ignore the misspelled word. To continue spell checking the next page, click Next Page.

orange_circle_8.gif If you want to stop the spell check or it is done checking all the pages, click Back To List.

orange_circle_9.gif Click Cancel to close the Spelling dialog box.

f04ew44

f04ew45


Did You Know?

You can add a task for misspelled words. By assigning spelling corrections to Tasks, you can come back and correct them at your convenience. Click the Add a Task for Each Page With Misspellings check box to select it in the Spelling dialog box.


Using Custom Dictionaries

Before you can use a custom dictionary, you need to enable it first. You can enable and manage custom dictionaries by using the Custom Dictionaries dialog box. In the dialog box, you can change the language associated with a custom dictionary, create a new custom dictionary, or add or remove an existing custom dictionary. If you need to manage dictionary content, you can also change the default custom dictionary to which the spelling checker adds words, as well as add, delete, or edit words. If you mistakenly type an obscene or embarrassing word, such as ass instead of ask, the spelling checker will not catch it because both words are spelled correctly. You can avoid this problem by using an exclusion dictionary. When you use a language for the first time, Expression Web automatically creates an exclusion dictionary. This dictionary forces the spelling checker to flag words you don’t want to use.

Use a Custom Dictionary

orange_circle_1.gif Click the Tools menu, point to Spelling, and then click Spelling Options.

orange_circle_2.gif Click Custom Dictionaries.

orange_circle_3.gif Select the check box next to CUSTOM.DIC (Default).

orange_circle_4.gif Click the Dictionary language list arrow, and then select a language for a dictionary.

orange_circle_5.gif Click the options you want:

  • Click Edit Word List to add, delete, or edit words.
  • Click Change Default to select a new default dictionary.
  • Click New to create a new dictionary.
  • Click Add to insert an existing dictionary.
  • Click Remove to delete a dictionary.

orange_circle_6.gif Click OK to close the Custom Dictionaries dialog box.

f04ew46

orange_circle_7.gif Click OK.

Find and Modify the Exclusion Dictionary

orange_circle_1.gif In Windows Explorer, go to the folder location where the custom dictionaries are stored.

  • Windows Vista. C:Usersuser nameAppDataRoamingMicrosoftUProof
  • Windows XP. C:Documents and Settingsuser nameApplication DataMicrosoftUProof

TROUBLE? If you can’t find the folder, change folder settings to show hidden files and folders.

orange_circle_2.gif Locate the exclusion dictionary for the language you want to change.

  • The file name you want is ExcludeDictionary Language CodeLanguage LCID.lex.

For example, ExcludeDictionary EN0409.lex, where EN is for English.

Check Word Help for an updated list of LCID (Local Identification Number) number for each language.

f04ew47

orange_circle_3.gif Open the file using Microsoft Notepad or WordPad.

orange_circle_4.gif Add each word you want the spelling check to flag as misspelled. Type the words in all lowercase and then press Enter after each word.

orange_circle_5.gif Save and close the file.

Checking Spelling for Languages

International Expression Web users can change the language that appears on their screens by changing the default language settings. Before you can use a different language, you need to install the Microsoft Expression Web Language Pack for the languages you want to use in a Web site. After you install a language, you can set the default language for a Web page, Web site, and a custom dictionary. If the text in your Web page is written in more than one language, you can designate the language of selected text so the spelling checker uses the right dictionary. However, the keyboard you use to enter text determines the language used by the spelling checker.

Mark Text as a Language

orange_circle_1.gif Open and display the Web page you want to use.

orange_circle_2.gif Select the text you want to mark.

orange_circle_3.gif Click the Tools menu, and then click Set Language.

f04ew48

orange_circle_4.gif Click the language you want to assign to the selected text.

orange_circle_5.gif Click OK.

f04ew49


Did You Know?

You can specify your keyboard layout. After you enable editing for another language, such as Hebrew, Cyrillic, or Greek, you might need to install the correct keyboard layout so you can enter characters for that language. The keyboard you use to enter text determines the language used by the spelling checker. In the Control Panel (Classic view), double-click the Regional and Language Options icon, click the Language (XP) or Keyboards and Languages (Vista) tab, and then click Details (XP) or Change Keyboards (Vista) to check your keyboard.


Set Default Spelling Language for a Web Site

orange_circle_1.gif Open and display the Web site you want to use.

orange_circle_2.gif Click the Tools menu, and then click Page Editor Options.

orange_circle_3.gif Click the General tab.

orange_circle_4.gif Click the Default Page Language list arrow, and then select a language.

orange_circle_5.gif Click OK.

f04ew50


See Also

See “Changing Web Page Properties” on page 54 for information on setting the language used for spell checking on a Web page.

See “Using Custom Dictionaries” on page 108 for information on setting the language used for a custom dictionary.


Checking Spelling as You Type

As you type, a red wavy line appears under words not listed in Expression Web’s dictionary (such as misspellings or names) or duplicated words (such as the the). You can correct these errors as they arise. When Expression Web learns the spellings of words you use regularly, it even automatically corrects some errors as you type. If the unrecognized work is correct, you can add it to the dictionary.

Enable Check Spelling and Grammar Options

orange_circle_1.gif Click the Tools menu, point to Spelling, and then click Spelling Options.

orange_circle_2.gif Select the Check spelling as you type check box.

orange_circle_3.gif Click OK.

f04ew51

Correct Spelling and Grammar as You Type

orange_circle_1.gif In a Web page, right-click a word with a red wavy underline.

orange_circle_2.gif Click a substitution, or click Ignore All to skip any other instances of the word.

f04ew52


Did You Know?

You can remove the red wavy line. Click the Tools menu, point to Spelling, click Spelling Options, select the Hide spelling errors check box, and then click OK.


Finding the Right Words

Repeating the same word in a Web page can reduce a message’s effectiveness. Instead, replace some words with synonyms, words with similar meanings, or find antonyms, words with opposite meanings. If you need help finding exactly the right word, you can use the Thesaurus.

Use the Thesaurus

orange_circle_1.gif Open and display the Web page you want to use.

orange_circle_2.gif Select the word you want to look up.

orange_circle_3.gif Click the Tools menu, and then click Thesaurus.

f04ew53

orange_circle_4.gif Click a word to display its synonyms and antonyms.

orange_circle_5.gif Click the word you want to use or type one you want.

orange_circle_6.gif Click Replace.

orange_circle_7.gif Click Cancel.

f04ew54

Changing Default Text

When you type text in a page, Expression Web applies a set of default text attributes. You can change the default text for Design and Code views. In Design view, you can change the default proportional and fixed-width fonts. A proportional font has variable spacing between letters, while a fixed-width font has the same spacing between letters. Proportional fonts are typically used for Web page text, while fixed-width fonts are typically used for working with code. When you are working with large amounts of text, a fixed-width font is easier to read.

Change Default Text

orange_circle_1.gif Click the Tools menu, and then click Page Editor Options.

orange_circle_2.gif Click the Default Fonts tab.

orange_circle_3.gif Click the language you want as the default.

orange_circle_4.gif Select the defaults fonts you want for Design view.

orange_circle_5.gif Select the default font and size you want for Code view.

orange_circle_6.gif Click OK.

f04ew55

Inserting Text from a File

If you have a word processing document that you want to use as a Web page, you can insert the entire file. You use the File command on the Insert menu to select the file and insert the contents. The Select File dialog box works just like the Open dialog box. Expression Web allows you to insert files in several formats, including Rich Text Format (.rtf), Text Files (.txt), Word 2007 (docx), Word 97-2003 (.doc), and HTML (.htm, .html).

Insert a File

orange_circle_1.gif Open and display the Web page you want to use.

orange_circle_2.gif Click where you want to insert the content of the file.

orange_circle_3.gif Click the Insert menu, and then click File.

orange_circle_4.gif Click the Files of type list arrow, and then select the type of file you want to insert.

orange_circle_5.gif Locate and select the file.

orange_circle_6.gif Click Open.

f04ew56

orange_circle_7.gif If necessary, select an option, and then click OK.

f04ew57

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.19.30.232