Operation Manual
397
USING DREAMWEAVER
Creating and managing templates
Last updated 3/28/2012
Setting authoring preferences for templates
Customize code coloring preferences for a template
Code color preferences control the text, background color, and style attributes of the text displayed in Code view. You
can set your own color scheme so you can easily distinguish template regions when you view a document in Code view.
1 Select Edit > Preferences (Windows) or Dreamweaver > Preferences (Macintosh).
2 Select Code Coloring from the category list on the left.
3 Select HTML from the Document Type list, then click the Edit Coloring Scheme button.
4 In the Styles For list select Template Tags.
5 Set color, background color, and style attributes for the Code view text by doing the following:
• If you want to change the text color, in the Text Color box type the hexadecimal value for the color you want to
apply to the selected text, or use the color picker to select a color to apply to the text. Do the same in the Background
field to add or change an existing background color for the selected text.
• If you want to add a style attribute to the selected code, click the B (bold), I (italic), or U (underline) buttons to set
the desired format.
6 Click OK.
Note: If you want to make global changes, you can edit the source file that stores your preferences. On Windows XP, this
is located at C:\Documents and Settings\%username%\Application Data\Adobe\Dreamweaver
9\Configuration\CodeColoring\Colors.xml. On Windows Vista, this is located at C:\Users\%username%\Application
Data\Adobe\Dreamweaver 9\Configuration\CodeColoring\Colors.xml.
Set highlighting preferences for template regions
You can use the Dreamweaver highlighting preferences to customize the highlight colors for the outlines around the
editable and locked regions of a template in Design view. The
editable region color appears in the template as well as
in documents based on the template.
More Help topics
“Recognizing template-based documents in Design view” on page 372
“Recognizing templates in Design view” on page 371
Change template highlight colors
1 Select Edit > Preferences (Windows) or Dreamweaver > Preferences (Macintosh).
2 Select Highlighting from the category list on the left.
3 Click the Editable Regions, Nested Regions, or Locked Regions color box, then select a highlight color using the
color picker (or enter the hexadecimal value for the highlight color in the box).
For information about using the color picker, see “Use the color picker” on page 205.
4 (Optional) Repeat the process for other template region types, as necessary.
5 Click the Show option to enable or disable displaying colors in the Document window.
Note: Nested Region does not have a Show option; its display is controlled by the Editable Region option.
6 Click OK.