In the Author toolbar, select Contents and open a desired topic from the Contents panel.
- RoboHelp User Guide
- Introduction
- Projects
- Collaborate with authors
- PDF Layout
- Editing and formatting
- Format your content
- Create and manage cross-references
- Create and manage links
- Single-source with snippets
- Work with images and multimedia
- Create and use variables for easy updates
- Work with Variable Sets
- Use Find and Replace
- Auto save your content
- Side-by-side editing in Split View
- Use the Spell Check feature
- Create and Edit Bookmarks
- Insert and update fields
- Switch between multiple views
- Autonumbering in CSS
- Import and linking
- TOCs, indexes, and glossaries
- Conditional content
- Microcontent
- Review and Collaboration
- Translation
- Generating output
- Publish output
- Appendix
Learn about how to use and work with snippets in RoboHelp.
A snippet can be a paragraph of text, a piece of code, an object such as an image, or an entire topic itself. You can single-source a snippet and reuse it across multiple topics in a project. A snippet can also contain variables and conditional text tags. When you change the contents of a snippet, it is updated across all the topics that contain it.
Use inline snippets within your text to create emphasis on important key words. You can select text within the paragraph and create snippet of the selected portion, or create it directly in the snippet editor. On usage, it can be inserted within any paragraph or text as an inline snippet.
Create a snippet
Open a project in RoboHelp and follow these steps to create a snippet:
-
-
In the Author toolbar, select Snippets. The Snippets panel opens.
-
In the Snippets panel, click
.
-
In the New Snippet dialog box, specify the name and description of the snippet in Name and Description, respectively.
-
Click Create. The snippet is created and can be accessed from the Snippets panel.
Create an inline snippet
Open a project in RoboHelp and follow these steps to create an inline snippet:
-
In the Author toolbar, select Contents and open a desired topic from the Contents panel.
-
Within a paragraph, select the text for which you want to create an inline snippet. You can choose to apply inline formatting like Bold, Underline, and so on.
-
Right-click the highlighted text and choose Create snippet.
-
In the New Snippet dialog box, specify the name and description of the snippet in Name and Description, respectively.
-
Click Create. The snippet is created and can be accessed from the Snippets panel.
You can now use this inline snippet with other text as part of the paragraph.
You can use snippets for any formatted content whereas variables are for any plain text as they can be used inside attributes.
Insert a snippet
To insert or use a snippet in an open topic:
-
To open a topic:
In the Author toolbar, select Contents and open a topic of your choice from the Contents panel.
-
In the Author toolbar, select Snippets. In the Snippets panel, choose a snippet.
-
Now drag-and-drop the selected snippet at the preferred location in the open topic.
Alternatively, press Ctrl+2. In the Snippet dialog box, you can filter snippets by typing the first few alphabets. Press the upward and downward arrow keys to navigate through the list of snippets. Press Enter to insert a snippet.
-
Click the Save All icon
at the left side of the standard toolbar.
Delete a snippet
To delete a snippet from a project, follow these steps:
-
In the Author toolbar, select Snippets. The Snippets panel opens.
-
Select the snippet that you want to delete and click Options
next to the snippet.
-
In the Options list, select Delete.
-
In the Confirm dialog box, click Yes.
Generate Snippets report
You can generate a Snippets report to view the details of snippets in your project. You can also customize, download, or print your report.
-
In the Author toolbar, select Reports. The Reports panel opens.
-
In the Reports panel that appears, select Snippets.
-
You can customize a report using the Filters panel on the right side of the screen. To know more, see Customize a report.
-
Click the Download icon
in the standard toolbar to instantly download the report.
-
Click the Print icon
in the standard toolbar to print your report.

The gif below demonstrates the search and preview workflow.

More like this
Inicia sesión en tu cuenta