1.Create a new topic. The topic ID is irrelevant because you are going to delete the topic as soon as you have saved the template.
2.Edit the topic and add everything that you want to have in the template. You can use all the features that you can use in a normal topic, including tables, graphics, formatted text, hyperlinks and so on.
3.Enter the topic header (in the area above the editor, not in the TOC) exactly as you want it to appear in the topic. See the instructions below for automatically inserting the TOC caption in the header.
4.Select File > Save Topic to File in and save the topic as an XML file in the project folder, using the following naming syntax:
filename.template.xml
The .template. part of the name is essential, it identifies the XML file as a template. Templates must be stored in the current project directory and must use this naming syntax. If you call the template default.template.xml it will be selected automatically for new topics (see further below for details).
Examples:
intro.template.xml
functiondocs.template.xml
standarddocs.template.xml
default.template.xml (will be autoselected for new topics)
5.Delete the topic you have just created if you don't want to use it in your project now. |