Creating a Snippet with non-standard content in Flare

Creating a Snippet with non-standard content in Flare

When you are working in Flare, you may have encountered an issue that drove me crazy for a long time regarding snippets.

When you have some content in Flare that you want to convert to be a snippet, usually you can just select the paragraphs of text and click the Create Snippet button on the Home ribbon. However, if that selected content contains certain types of content (I’m looking at you, tables), the Create Snippet button isn’t available. So what should you do?

One option is to select the content, cut it to the clipboard, go create a new snippet file, then paste the content into the snippet file, and finally insert the snippet into the original topic. Don’t do that anymore.

Instead, when you have the content highlighted, press the Tab key on your keyboard, and from the pop-up window, select “div”, then click OK. Now, click on the div structure bar. The Create Snippet option is now available! Click it to convert your div’ed content into a snippet.

Tip: If you can’t press the Tab key because you are in a table or a list, use the  (group) button instead.

You can stop here if you want, or you can make the following additional change. In the new snippet file, right click on the div structure bar, and click Unbind, then save the snippet file. This removes the div HTML element from the content. It doesn’t hurt to leave it in; since the div doesn’t have an id or class it won’t change what the content looks like in the output. That said, there is no reason for it anymore, so you can delete it if you want to keep things clean.

There you go. It’s Wednesday, but we’re going to call this a #FlareTipTuesday anyway.

5 responses to “Creating a Snippet with non-standard content in Flare”

    • I think so. At least the way I do it. It seems easier than creating a snippet, then going and finding the content, and copying the content into the snippet, and then inserting the snippet into the topic. YMMV.

  1. One reason why you might want to unbind the div is that in Word output, Flare converts every div to a single-cell table. In some cases, this can change how the content looks in the output.

Leave a Reply