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

Home > Articles > Design > Voices That Matter

  • Print
  • + Share This
This chapter is from the book

Pasting Text

Expression Web gives you two ways to paste text, each of which controls a different aspect. The commonly used Paste command (ctrl-v.gif) includes options for controlling the style of the inserted text. Expression Web’s Paste Text command, which has no keyboard shortcut, includes options for controlling the line breaks and white space of the inserted text.

To paste text:

  1. Make sure you’re in Design view. Click in the page where you want to insert text that you’ve cut from a Web page or from another program, such as Microsoft Word.
  2. Choose Edit > Paste (ctrl-v.gif), or right-click and choose Paste.

    The stored text is pasted into the destination document at the insertion point and, by default, retains the formatting of the source document from where it’s cut or copied. If you don’t want to keep the formatting, right-click the Paste Options button that appears amid the inserted text (Figure 4.5). Choose Remove Formatting in the drop-down menu to match the formatting of the destination document (Figure 4.6). For more information, see “Controlling Paste Styles” on page 56.)

    Figure 4.5

    Figure 4.5 If you don’t want to keep the formatting of the source document, right-click the Paste Options button.

    Figure 4.6

    Figure 4.6 Choose Remove Formatting in the drop-down menu (top) to match the formatting of the destination document (bottom).

    or

    Choose Edit > Paste Text (Figure 4.7). When the Paste Text dialog box appears, pick one of the five choices (Figure 4.8).

    Figure 4.7

    Figure 4.7 To control line breaks and white space in the inserted text, choose Edit > Paste Text.

    Figure 4.8

    Figure 4.8 When the Paste Text dialog box appears, pick one of the five choices. (See Table 4.2.)

    The text is pasted based on your choice. For more information, see “Controlling Paste Line Breaks and White Space” on page 56.

Figure 4.9

Figure 4.9 If the source text includes a style with the same name as your destination page, the drop-down menu includes the option of matching the destination page’s style.

Table 4.1. Controlling Paste Styles

CHOOSE

TO

Match Destination Formatting

Preserve formatting of the destination page

Keep Source Formatting

Preserve formatting of the source document

Remove Formatting

Insert plain text

Keep HTML Only

Preserve HTML coding copied from the source

Keep Text Only

Insert plain text—same as Remove Formatting—except the Paste Text dialog box appears, letting you control line breaks and white space (See Table 4.2 below.)

Table 4.2. Controlling Paste Line Breaks and White Space

CHOOSE

TO

Plain text

Insert plain text with spaces replacing any line breaks in source text

One <pre> formatted paragraph

Use <pre> (preformatted) tag to maintain all line breaks of source text

Many <pre> formatted paragraphs

Use <pre> tag to maintain all line and paragraph breaks of source text

Normal paragraphs with line breaks

Convert any lines breaks to <br> (line break) tag and any paragraph breaks to <p> (paragraph) tag

Normal paragraphs without line breaks

Do exactly that

To undo an action:

  • Choose Edit > Undo, or press ctrl-z.gif.

    The previous action is undone.

To redo an action:

  • Choose Edit > Redo, or press ctrl-y.gif.

    The previous action is reapplied.

Figure 4.10

Figure 4.10 The Undo and Redo drop-down menus in the Standard toolbar let you choose how many actions to step backward or forward.

To add a line break:

Do one of the following:

  • Click your cursor where you want the text to break, and press shift-enter.gif.

    The text breaks to a new line.

  • Click your cursor where you want the text to break, and choose Insert > HTML > Break (Figure 4.11).

    Figure 4.11

    Figure 4.11 To add a line break, choose Insert > HTML > Break.

    The text breaks to a new line.

  • Click your cursor where you want the text to break, and in the Toolbox task pane, look in the HTML-Tags section and double-click the Break button (Figure 4.12).

    Figure 4.12

    Figure 4.12 You also can double-click the Break button in the Toolbox task pane.

    The text breaks to a new line.

To add a paragraph break:

  • Click in the text where you want a new paragraph to begin, and press enter.gif.

    The cursor or text jumps to the next line to start a new paragraph.

To show/hide line break and paragraph marks:

  1. Click the Show All button in the Standard toolbar (Figure 4.13). All the normally hidden line break and paragraph marks appear. To hide the marks, click the Show All button again.

    Figure 4.13

    Figure 4.13 To show line break and paragraph marks, click the Show All button in the Standard toolbar. Click again to hide them.

    Just as you can show/hide various toolbars or task panes, click the arrow next to the Show All button and use the drop-down menu to turn on/off ten different categories of marks (Figure 4.14).

    Figure 4.14

    Figure 4.14 You can click the arrow next to the Show All button’s and use the drop-down menu to turn on/off ten categories of marks.

  • + Share This
  • 🔖 Save To Your Account