06.61 Understanding Tag Specific Options

WINDOWS

Alt,T, O

MENU

Tools | Options | Text Editor | HTML | Formatting

COMMAND

Tools.Options

VERSIONS

2005, 2008, 2010

CODE

vstipEdit0090

In vstipEdit0089 (06.47 Format the Current Document or Selection (Web), on page 265), I showed you how to use selection formatting on a sample.

Let’s say you don’t like the way <DIV> tags are formatted. You can go to Tools | Options | Text Editor | HTML | Formatting and click the Tag Specific Options button.

Exploring the Tag Specific Options Dialog Box

This dialog box is somewhat complicated, so let’s go though it one area at a time. For reference, the following illustration provides a bird’s eye view to help us stay oriented as we go along.

Tree view

Allows you to select either ...

Get Coding Faster: Getting More Productive with Microsoft® Visual Studio® now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.