Select code

Microsoft Expression Web provides you with several different ways to quickly select tags and other code, including a block of property declarations for a style or the braces that surround the property block. You can choose to select only the start or end tag, or only the content that resides between the tags, or the tags and the content.

Tip

Many features and commands you can use in the Code view of a page have keyboard shortcuts. For more information, see Code view shortcuts in Keyboard shortcuts.

To select a set of tags and the content within

  1. In Design or Code view, in your web page, place your cursor in the tag or in content of the tags.

  2. Do one of the following:

    • At the top of the document window, on the Quick Tag Selector bar, click the tag that you want.

    • At the top of the document window, on the Quick Tag Selector bar, point to the tag that you want, click the arrow next to that tag, and then click Select Tag.

    • In Code view, on the Code View toolbar, click Select Tag Cc295407.bbacdfe3-cf80-4c4b-add3-b615069d3ab4(en-us,Expression.40).png.

    • In Code view, on the Edit menu, point to Code View, and then click Select Tag.

To select the content within tags

  1. In Design or Code view, in your web page, place your cursor in the tag or in content of the tags.

  2. At the top of the document window, on the Quick Tag Selector bar, point to the tag that you want, click the arrow next to that tag, and then click Select Tag Contents.

To select the matching tag

In Code view, in your web page, put your cursor in either the start or end tag that you want to select, and then do one of the following:

  • In the Code View toolbar, click Find Matching Tag Cc295407.a1d5ea45-3ce2-4446-8db4-853506059471(en-us,Expression.40).png.

  • On the Edit menu, point to Code View, and then click Find Matching Tag.

Repeat this procedure to select the start or end tag that matches the selected tag.

To select a style's block of property declarations

In Code view, in your web page, put your cursor in the block of property declarations, and then do one of the following:

  • In the Code View toolbar, click Select Block Cc295407.12c9cde9-a2f1-4196-9962-337d11ba0d3f(en-us,Expression.40).png.

  • On the Edit menu, point to Code View, and then click Select Block.

To select the matching curly brace for a style's block of property declarations

In Code view, in your web page, put your cursor just outside a style's block of property declarations or anywhere within the block, and then do one of the following:

  • In the Code View toolbar, click Find Matching Brace Cc295407.4e5911d3-f675-4e11-b426-a1acff9b3917(en-us,Expression.40).png.

  • On the Edit menu, point to Code View, and then click Find Matching Brace.

Repeat this procedure to select the matching brace.

See also

Tasks

Insert tags and comments
Delete tags
Show or hide tags and formatting marks in Design view
Find and replace tags

Reference

Quick Tag Selector

Send feedback about this topic to Microsoft. © 2011 Microsoft Corporation. All rights reserved.