Importing Snippets

You can create new snippets (FLSNP files) within your project. But if you already have created snippets in another project and want to reuse them in your current project, you can import those snippets.

How to Import a Snippet

  1. Select Project > New > Snippet.

    The Add File dialog opens.

  2. Select New from existing and click The browse ellipsis button opens to more options..
  3. Find and select the snippet file that you want to import.
  4. Click Open. The Source File field now contains the path to the file that you are importing. Also, the name of the file is displayed in the File Name field.
  5. In the Folder field select a location to store the snippet in the project.
  6. If you want to give the snippet a different name than that for the imported file, click in the File name field and replace the text.
  7. (Optional) If you want to apply condition tags to the file, expand the Attributes section at the bottom of the dialog. Next to the Condition Tags field, click The browse ellipsis button opens to more options. and select the conditions you want to apply. Click OK. See Applying Conditions to Content.
  8. (Optional) If you want to apply file tags, expand the Attributes section at the bottom of the dialog. Next to the File Tags field, click The browse ellipsis button opens to more options. and select the file tags you want to apply. Click OK. See Associating Tags With Files.
  9. Click Add. The snippet is added to the Resources\Snippets folder in the Content Explorer and opens in its own page in the XML Editor.

Note As an alternative to importing single files from another location, you can import linked files from a Flare source project using a featured called "Global Project Linking." This is different than a simple import process, because in this case, the imported files remain linked to the source project. This lets you make future updates to those files in just one place—in the parent project. When you perform ongoing imports using your previous settings, Flare recognizes changes to the source files. Therefore, the new files can be brought over, replacing the outdated ones. See Global Project Linking—Importing Files From Other Projects.