You can import topics and XML topic files to the current topic from the current project, from other Help & Manual projects and from libraries of Help & Manual XML files. You can either overwrite the entire current topic with the external file using Load Topic from File or you can insert the external file in the current topic with the Snippets tool.
You can also copy and paste topics and chapters from other projects in the same way as within your current project.
Use Snippets to build up a collection of pre-formatted text blocks and topics that you and your team use frequently! Just copy the XML topic files you want to use to a folder for storage. |
The The topics can be in your current project, another Help & Manual project (HMXP format, Professional version only) or a directory of H&M XML files.
"Use project search path to locate snippet" This option adds the location of the snippet file to the project search path – if you deselect it the path to the snippet is stored with the snippet. Rather than using snippets from many locations it is better to store all your snippet files in a common location. This will make them easier to manage, particularly if you ever need to move your project or have it translated. |
You can insert snippets from any location. However, if you use linked snippets from many locations the links will be dead if you move your project or send it to someone by email. You can solve this problem by storing your snippet files together with your project in a special directory.
When you do this you can always move your snippets folders to any location you like. To get Help & Manual to find the snippets you just need to add the new location to your Project Search Path. |
You can export selected text or the current topic to an external XML file, for example for use as a snippet in a snippet directory. Export the entire topic:
Export selected text: Select text in the editor – the text can include anything that a topic can contain, i.e. also images, tables, etc. Select File > Save Snippet in Project > Manage Topics and choose a save location and a filename. |
Formatting with styles: If the text in snippets is formatted with styles the styles must be defined in the present project. If the styles are not defined the snippets text will be displayed unformatted. If you use standard style names in all your projects your snippets will be reformatted automatically to match the styles of the current project. Manual formatting: If the text in your snippets files is manually formatted it will be displayed normally in the current project. It is generally better to use manual formatting if you want the formatting of the snippets to look identical wherever they are used. |
You can load entire topics from external files. Unlike snippets, loading a topic from a file replaces the entire current topic with the external file. You can load topics from RTF, HTML, TXT and Help & Manual XML topic files.
See Content templates for topics for information on using Help & Manual XML topic files as content templates for topics. |
In HTML-based output formats you can also use the #MERGE command to merge the contents of external HTML files into your topics when you compile your project. This enables you to maintain external files for information that may change and insert the latest version automatically every time you compile. See Merging HTML files into topics for full details and instructions. |
If the pasted topics have the same IDs as topics in the target project H&M will change them automatically. It's advisable to open the tab and check the IDs of all pasted topics after importing them. |
See also:
Re-using content with snippets
Exporting and importing topics
Moving, cutting and pasting topics
Page url: http://www.helpandmanual.com/help/index.html?hm_new_item.htm