Madcap Flare: Snippets 101

 

Snippets? Sounds familiar but what are they?

In the Madcap world of Flare, snippets are content ‘fragments’ you can re-use in different parts of your Madcap Flare projects.

Use snippets to insert:

  • Text
  • Tables
  • Images
  • Video

Why Use Snippets

If you find yourself typing the same text over and over, create a snippet instead.

madcap-flare-snippet-6

Create the content once instead of re-typing and reformatting it for each topic.

If you want to modify a snippet, change its contents and the text is automatically updated everywhere that the snippet is added.

Snippets are contained in .flsnp files (flare snippets).

You can share them with other authors or use them in other projects.

madcap-flare-snippet-3

Default Save location

Snippet are saved in the Content Explorer in the ResourcesSnippets folder by default.

However, you can store it anywhere in the Content Explorer that you like.

Creating New Snippets

There are two ways to create a snippet.

  • Create Snippets From Existing Content — If you have already created content and want to use it as a snippet, use the Home ribbon or Format menu. Insert the snippet into other topics where you want it to appear.
  • Add Snippets — Add a new snippet and insert it into the topics.

madcap-flare-snippet-4

To create new snippets from existing content:

  1. Open the topic.
  2. In the XML Editor highlight the content that you want to turn into a snippet.
  3. In the Home ribbon, select Create Snippet.
    madcap-flare-snippet-7
  4. In the Snippet File field, type a new name for the snippet. After the snippet is created, you can see it in the Content Explorer.
  5. If you want the snippet to replace the highlighted text in the topic, select the Replace Source Content with the New Snippet check box.
  6. Click Create. The snippet is surrounded by brackets (if markers are turned on).
  7. Save.

Inserting Snippets

After you’ve created a snippet, you can insert it into a topic.

You can do this by using the ribbon or drag an existing snippet from the Content Explorer or File List window pane.

How to insert a snippet

  1. Open your file.
  2. Place your cursor where you want to insert the snippet.
  3. In the Insert ribbon, select Snippet. The Insert Snippet Link dialog box opens.
  4. Navigate to the snippet that you want to insert and select it.
  5. Click OK. The snippet is inserted and is surrounded by brackets (if markers are turned on).
  6. Save your work.

madcap-flare-snippet-1

Editing Snippets

When you edit a snippet, the changes are automatically updated in every topic where you inserted the snippet.

How to edit a snippet

  1. To open the snippet:
  • Right-click on the snippet in a topic where it is inserted and select Open Link OR
  • Locate the snippet in the ResourcesSnippets folder in the Content Explorer and double-click it.madcap-flare-snippet-5
  1. In the XML Editor update the snippet.
  2. Click Save.

Did that help?

Did it give you any new ideas on how to create your web help or tech docs? Fess up, stranger.

Oh yeah, we’re over here on Facebook.