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.

[Menu Proxy — Headings — Online — Depth3 ]

How to Create a Snippet

  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 to save your work.

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.