In addition to styles, a style repository can also contain topic files. These files are automatically available to all projects linked to the style repository as snippets. They can be inserted directly with the Insert Snippet tool, with the special From Repository section.
Since the repository styles are also available in all linked projects, all the snippets contained in the style repository will be formatted the same in all the linked projects where they are used. In addition to this, the style repository provides an easy, centralized place to edit the snippets. Just as with the repository styles, editing the topic files in the style repository automatically updates the content of the snippets in all projects where they are used.
This only applies when you link the snippets, of course! If you insert the snippets in paste mode they become part of the target topic and later changes to the source will not have any effect.
•Topics stored in a style repository are available automatically as snippets as soon as the repository is linked to a project. To insert a snippet from the linked style repository just select the snippet tool and use the From Repository option to access the repository snippets. See Re-using content with snippets for details.
Editing style repository snippets:
To edit the snippets in the style repository you need to open the repository and edit the topic files there.
1.Select Open in the File menu and select .hmxr as the file type to open.
2.Open the style repository project and edit the topic files just as you would in a normal Help+Manual project. Note that style repositories don't have a table of contents. You need to edit the files in the Project Files > Topic Files section.
Locating and editing the source of linked repository snippets directly
Just right-click on the linked snippet in the Help+Manual editor and select Locate Snippet Source, or hold down CTRL and click on the snippet. This jumps directly to the repository and opens the snippet file there if the repository is open in the current instance of Help+Manual. Otherwise the program displays a message asking you to open the repository in the current instance. (This doesn't work if the repository is open in a separate Help+Manual instance.)
Sometimes you may need to edit a project when the style repository it is linked to is not available. When you do this your linked snippets will not be visible because the link is "live". You will just see entries in your topics showing that the snippets cannot be found. They will become visible again as soon as the style repository is available again – for example when you are back in the office and your laptop is connected to the office network where the style repository is stored.
What you can't do is insert new snippets from the style repository when the repository is not available. After all, it's not available...