Creating Snippets From Existing Content

If you have already typed content in your topic and want to turn that content into a snippet, you can create a snippet out of that existing content using the Home ribbon or Format menu. You can then insert the snippet into other topics where you want it to appear.

How to Create a Snippet From Existing Content

  1. In the XML Editor select the content you want to turn into a snippet.
  2. In the Home ribbon, select Create Snippet.
  3. Give the snippet a name and choose a folder location to store it.

    It is recommended that you leave the project folder selection as "Resources/Snippets" (or select a subfolder that you have created in the Snippets folder). After the snippet is created, you can see the snippet file in the Content Explorer.

  4. If you want the snippet to replace the highlighted content, select Replace Source Content with the New Snippet.

    Why would you leave this box unchecked? Let's say you want to create two snippets and they are going to be very similar. You might create the first snippet, make a few changes to the text within the dialog, and leave this box unchecked. That snippet is created but not inserted into the topic. Then you can create the second snippet with this box checked. Flare will both create the snippet and insert it into the topic, replacing the highlighted text.

  5. Click Create. In the XML Editor, the snippet is surrounded by brackets (if markers are turned on).
  6. Click Save the active file. to save your work.

    If the animation below is cut off, you can see the complete animation by clicking the link under it to open the full topic.

Warning You can create snippets for entire question sections and reuse them. However, use caution when doing so, because each question has its own question ID associated with it, and you do not want the ID to end up inside the snippet. The question ID is necessary for eLearning tracking. For steps on using snippets for these eLearning elements, see How to Create Question Sections Using Snippets.

Note You can also add a new snippet file or import an existing snippet from outside your project. See Adding Snippet Files and Importing Snippets.

What’s Next?

After you create a snippet from existing content, you can insert it into any other topic in your project. See Inserting Snippets.