Code snippets let you store content for quick reuse. You can create and insert snippets of HTML, JavaScript, CFML, ASP, JSP, and more. Dreamweaver also contains some predefined snippets that you can use as a starting point.
This section describes how to insert, create, edit or delete code snippets. It also describes how to manage your code snippets and share them with other members of your team.
To insert a code snippet:
Place the insertion point where you want to insert the code snippet, or select code to wrap a snippet around.
In the Snippets panel (Window > Snippets), double-click the snippet.
You can also right-click (Windows) or Control-click (Macintosh) the snippet, then select Insert from the pop-up menu.
To create a code snippet:
In the Snippets panel, click the New Snippet icon at the bottom of the panel.