Macromedia dreamweaver 8-using dreamweaver User Manual
Managing templates
329
Checking template syntax
Dreamweaver automatically checks the template syntax when you save a template, but you
can manually check the template syntax prior to saving a template. For example, if you add a
template parameter or expression in Code view, you can check that the code follows correct
syntax.
can manually check the template syntax prior to saving a template. For example, if you add a
template parameter or expression in Code view, you can check that the code follows correct
syntax.
To check for valid template syntax:
1.
Open the document you want to check in the Document window.
2.
Select Modify > Templates > Check Template Syntax.
An error message appears if the syntax is badly formed. The error message describes the error
and refers to the specific line in the code where the error exists.
and refers to the specific line in the code where the error exists.
Related topics
■
■
Managing templates
Use the Templates category of the Assets panel to manage existing templates, including
renaming template files and deleting template files.
renaming template files and deleting template files.
To rename a template in the Assets panel:
1.
In the Assets panel (Window > Assets), select the Templates category on the left side of
the panel.
the panel.
2.
Click the name of the template to select it.
3.
Click the name again so that the text is selectable, then enter a new name.
This method of renaming works in the same way as renaming a file in Windows Explorer
(Windows) or the Finder (Macintosh). As with Windows Explorer and the Finder, be sure
to pause briefly between clicks. Do not double-click the name, because that opens the
template for editing.
(Windows) or the Finder (Macintosh). As with Windows Explorer and the Finder, be sure
to pause briefly between clicks. Do not double-click the name, because that opens the
template for editing.
4.
Click in another area of the Asset panel, or press Enter (Windows) or Return (Macintosh)
for the change to take effect.
for the change to take effect.
Dreamweaver asks if you want to update documents that are based on this template.
NO
TE
You can also use the Assets panel to apply a template to a document (see
) or edit a template (see
).