You are here: Features > Snippets > About Snippets

 

About Snippets

Snippets are pre-set chunks of content that you can use in your project over and over. They are somewhat similar to variables. The difference between variables and snippets is:

Snippets are contained in their own files (using an .flsnp file extension). You can therefore share them with other authors or use them in other projects. If you insert a snippet that is stored outside of your project, the file is copied to your project. Snippet files are stored in the Content Explorer, within the Resources\Snippets folder.

Text and block snippets

You can create a text snippet or a block snippet. This is determined by the way you insert the snippet. If you insert a snippet on a blank line in a topic, it is inserted as a block snippet and takes up all of the room so that no other content can be added. If you insert a snippet on a line where other content exists, it is inserted as a text snippet. Therefore, if you want to insert a snippet on a blank line and also type other text before or after it, you need to type the text first and then insert the snippet afterwards. Also, if you have a snippet containing multiple paragraphs and insert it within a line of text, the snippet becomes just one continuous line of text because it is a text snippet.

When you create a text or block snippet, it displays surrounded by brackets (if you have markers turned on).

Condition tags and snippet conditions

You can apply a condition tag to a snippet so that it is included in some targets but not in other targets. See Applying Condition Tags to Content.

You can also create snippet conditions. Snippet conditions are condition tags that you can apply to content within snippets. With snippet conditions, you can separate certain snippet content so that it displays in some topics or master pages but not in others. This allows you to use one snippet for many purposes, rather than having to create multiple snippets. Whereas regular conditions are included or excluded at the target level, snippet conditions are included or excluded at the topic or master page level. See Using Snippet Conditions.

Snippets and Auto Suggestions

Flare recognizes when you are typing content that matches existing snippets in your project. This makes it a very fast and convenient way to single-source your content. See About Auto Suggestion and Enabling and Disabling Auto Suggestion.

example

Let's say you work on a team of 15 writers and there are a series of snippets in all of your projects that begin with the same three words—For more information…

Perhaps each person knows to start typing those words in certain places. But what if a snippet already exists with the full content that the writer needs? Without knowing that, a person might spend time typing all of the content, and maybe even create a new snippet for future use. But if Auto Suggestion is enabled, as soon as a person types a certain number of characters, all matching snippets are shown in the Auto Suggestion popup. Therefore, the writer can quickly find and select the appropriate snippet.

Tasks Associated with Snippets

Following are the main tasks involved with using snippets.

Note: Although it is possible to open any Flare files in a third-party editor, it recommended that you avoid editing these files in certain programs while Flare is running. For example, opening a style sheet in Notepad is not an issue. But you might experience problems if you open a topic or snippet in Microsoft Word and edit it while Flare is running.

See Also

PDF Downloads:

Flare Quick Guide

Flare Getting Started Guide

Flare What's New Guide

Flare Key Features Guide

Flare Transition From FrameMaker Guide

Flare Styles Guide

Flare Printed Output Guide

Flare WebHelp Plus Guide

Flare Shortcuts