2022.1

Table Of Contents
Snippets folder on the Resources pane, but their file name ends in .html.
This topic contains information that only applies to HTML snippets. If you want to know how to
add an existing (remote) snippet to the resources, or how to create an empty HTML snippet,
please see "Snippets" on page775.
Tip
It is possible to open and edit any external HTML file in the Designer: select File > Open,
select All files (*.*) as the file type and then select an HTML file.
Using content to create an HTML snippet
To turn a part of a letter, email or web page into an HTML snippet for reuse in the content of a
template:
1. Open the section and select the part or parts that should be saved to a snippet.
2. Right-click the selection, point to Snippet and click Create to copy the selected part to a
new snippet, or Create Shared Content to create the new snippet and replace the
selected part with a reference to the new snippet.
3. Give the snippet a name.
Adding an HTML snippet to a section
Drag-and-drop
To add an HTML snippet to the content of a section, drag the snippet from the Snippets folder
on the Resources pane to the desired location in a section.
Check the option Insert as shared content to insert a reference to the original snippet in the
template, rather than a copy of the original snippet.
Via a script
In addition to the drag-and-drop method, it is possible, and often useful, to insert a snippet or
part of it, using a script; for remote snippets this is normal practice. See "Loading a snippet via
a script" on page945.
Editing a snippet
To edit a snippet, open the snippet file by double-clicking it on the Resources pane.
Page 779