Snippets Panel Functions - Adobe 38040334 - Dreamweaver CS3 User Manual

Api reference
Hide thumbs Also See for 38040334 - Dreamweaver CS3:
Table of Contents

Advertisement

Arguments
{typeOfUpdate}
• The optional
typeOfUpdate
argument is omitted, it defaults to
Returns
Nothing.

Snippets panel functions

Using Dreamweaver, web developers can edit and save reusable blocks of code in the Snippets panel and retrieve
them as needed.
The Snippets panel stores each code snippet in a CSN file within the Configuration/Snippets folder. Snippets that
come with Dreamweaver are stored in the following folders:
• Accessible
• Comments
• Content_tables
• Filelist.txt
• Footers
• Form_elements
• Headers
• Javascript
• Meta
• Navigation
• Text
Snippet files are XML documents, so you can specify the encoding in the XML directive, as shown in the following
example:
<?XML version="1.0" encoding="utf-8">
The following sample shows a snippet file:
<snippet name="Detect Flash" description="VBscript to check for Flash ActiveX control"
preview="code" factory="true" type="wrap" >
<insertText location="beforeSelection">
<![CDATA[ ------- code --------- ]]>
</insertText>
<insertText location="afterSelection">
<![CDATA[ ------- code --------- ]]>
</insertText>
</snippet>
Snippet tags in CSN files have the following attributes:
argument must be
"library"
.
"both"
,
, or
, if you specify it. If the
"template"
"both"
DREAMWEAVER CS3
298
API Reference

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents