Export (0) Print
Expand All

Tabs, HTML/XML, Text Editor, Options Dialog Box

These options make it possible for you to adjust tab settings for the HTML view markup editor. You can set all new lines to begin at the far left margin, or let the editor insert tabs to make the new line begin directly underneath the point where the previous line began. To access these settings in the Options dialog box, expand the Text Editor node, select HTML/XML, and choose Tabs.

To open the Options dialog box, select Options from the Tools menu. These settings supplement those available under HTML Designer.

Indenting

None
When selected, no tabs are added at the beginning of a new line.
Block
When selected, tabs are added at the beginning of a new line within the opening and closing tags of an HTML element or <SCRIPT> </SCRIPT> block. These tabs place the point where the new line begins directly underneath the point where the previous line began.
Smart
When selected, the number of tabs automatically inserted at the beginning of a new line is adjusted according to the context. When you press RETURN after an opening brace ( { ), for example, the next line is automatically indented to the next tab stop. When you press RETURN after a closing brace ( } ), the closing brace is realigned with the opening brace. When the Smart option is not selected, you must edit tabs manually to change indenting.

Tabs

Tab size
Sets the distance between tab stops. The default is four spaces.
Indent size
Sets the distance in spaces that text is automatically indented. The default is four spaces.
Insert spaces
When selected, the Tab key inserts space characters (ASCII 32) instead of the tab character (ASCII 9). This can be useful if you use external editors which set their tab stops at different intervals.
Keep tabs
When selected, the Tab key inserts the tab character (ASCII 9).

See Also

HTML Designer | General, HTML/XML, Text Editor, Options Dialog Box | Format, HTML/XML, Text Editor, Options Dialog Box | HTML Specific, HTML/XML, Text Editor, Options Dialog Box | XML Specific, HTML/XML, Text Editor, Options Dialog Box | General, HTML Designer, Options Dialog Box | Display, HTML Designer, Options Dialog Box

Show:
© 2014 Microsoft