- Introduction
- Understanding HTML
- Using the Reference Panel
- Using Code View
- Using Code Live View
- Setting Code View Options
- Entering HTML Code
- Using Code Hints
- Working with HTML Head Tags
- Inserting HTML Comments
- Using the Coding Toolbar
- Using Quick Tag Editor
- Using the Tag Inspector
- Using the Tag Chooser
- Opening Related Files
- Navigating to Related Code
- Setting Site Specific Code Hints
- Setting Code Hint Preferences
- Setting Code Format Preferences
- Setting Code Rewriting Preferences
- Setting Code Color Preferences
Setting Code Format Preferences
You can use the Code Format section of the Preferences dialog box to change the way your code looks in Code view. The options you set in the Code Format section, except the Override Case Of option, are automatically applied only to new documents or additions to documents you create in the future. If you want to reformat an existing document, you can use the Apply Source Formatting on the Commands menu.
Set Code Format Preferences
- Click the Dreamweaver (Mac) or Edit (Win) menu, and then click Preferences.
- Click the Code Format category.
- Select from the following options:
-
Indent. Select to have Dreamweaver indent generated code, and then specify how many spaces or tabs to indent.
-
Tab Size. Specify how many spaces for a tab character.
-
Line Break Type. Select the type of remote hosting server (Windows, Macintosh, or UNIX).
-
Default Tag Case and Default Attribute Case. Select <lowercase> or <uppercase>.
-
Override Case Of: Tags and Attributes. Select whether to override your case settings.
-
TD Tag: Do Not Include A Break Inside The TD Tag. Select to prevent problems with white space and line breaks on older browsers.
-
Advanced Formatting. Click to set formatting options for CSS code and individual tags and attributes in the Tag Library Editor.
-
- Click OK.