Snippets are chunks of content that you can use in your project over and over. Think of them as miniature topics. It’s content that you want to reuse in many different topics, but you don’t want to have to keep retyping that content, so you just type it once in a snippet. Then you insert that snippet into as many topics as you need it to be in. You can even insert them into other snippets, creating nested snippets. Normally snippets are made up of one or more paragraphs, perhaps including elements such as lists, images, tables, or text. We’re not usually talking about single words or phrases here. That’s what variables are for.
Let's say you are writing a manual about dogs. In one topic, you have created a colorful table with images that lists the top five breeds. Let's say you want to place that same table in seven other topics. You have a choice. (1) You can re-create that table manually in each of those topics. (2) You can copy the first table and paste it into the other topics. This is a better solution, but if you need to make changes to the table in the future, you'll need to do so in all eight topics. (3) You can create a snippet from the table and insert it into each of the other topics. This is the best solution because, if you need to make changes in the future, you only need to do so within the snippet and the changes are automatically reflected in all eight topics.
For more information about snippets, see the Flare online Help.
Following are Analyzer tasks associated with snippets.
- View and Convert Snippet Suggestions You can view content that matches existing snippets in your project, and you can quickly convert these occurrences to snippets. You can also double-click a row to open the topic in question, with the potential snippet content highlighted. See Viewing Snippet Suggestions.
Convert Frequent Segments to Snippets You can view a list of segments that occur frequently in your project. You can see the segment text, the number of occurrences of each segment, and the number of words and characters in each segment.
If you notice that certain segments are repeated numerous times in your project, you can easily convert them to
snippets or variables. For more information see About Frequent Segments andConverting Frequent Segments to Snippets.
- View Topics With Snippet Conditions You can view a list of all files where snippet conditions have been applied. You can also double-click a row to open the topic in question. See Viewing Files with Snippet Conditions.
- Replace Existing Snippets with New Snippets After you create or add a new snippet to your project, you can insert it into any of your topics. Later, if you decide that a different snippet is a better fit for the topic, you can select a new snippet to replace it.
See Replacing Snippets.