Editing HTML in Dreamweaver > Setting code formatting preferences > Code Colors preferences |
Use Code Colors preferences to control the background, text, tag, and reserved keyword colors in the Code view (or Code inspector). To work with these preferences, choose Edit > Preferences and select Code Colors.
Background specifies the background color of the Code view (or Code inspector). This color appears only when you click or type in the Code view or inspector.
Text specifies the color of text that appears between tags. For example, in the code <b>some text</b>
, the words "some text" appear in the specified text color, but the tags do not. To override the text color for a specific tag, select the Include Contents option.
Comments specifies the color for comment tags (<!-- -->
) and their contents.
Tag Default specifies the color for all tags except comments. To override this color, set the Tag Specific option.
Reserved Keywords specifies the color for all reserved keywords. To override this color, set the Tag Specific option.
Other Keywords specifies the color for all other keywords. To override this color, set the Tag Specific option.
Strings specifies the color for all strings in your code. To override this color, set the Tag Specific option.
Tag Specific allows you to override the other color settings by specifying colors for specific tags.
To set a color for a specific tag:
1 | Select a tag in the Tag Specific box. |
Shift-click to select adjacent tags. To select nonadjacent tags, Control-click (Windows) or Command-click (Macintosh). | |
2 | Click the radio button next to the color swatch at the bottom of the panel, and use one of these methods to choose a new color value: |
Click the color swatch and select a new color from the palette of browser-safe colors or the system color picker. | |
In the text field next to the swatch, enter a hexadecimal value. | |
3 | To color the text between the opening and closing tags, select Apply Color to Tag Contents. |