You are here: Creating Documentation > Topic Editor > Word-processing Features > Including Text from Other Files
See AlsoIn Doc-O-Matic there are two different ways of reusing text in various topics. You can:
- Insert text snippets that are stored in documentation snippets in your project.
- Include external text files.
- On the Editor menu, point to Insert.
- Select Text Include.
- Click
, and then select the plain text file you want to include. You can include any text files such as .txt, .h files. - Insert the file name or the filename including the complete path.
- If you insert the file name without path, add the include path in the Project Manager.
- Save the changes. The text of the file is shown in the Topic Preview.
- Click Snippet
. - In the snippet list, select the snippet you want to insert.
- Click Snippet
. - In the Add Files to the project dialog box, find the folder that contains the snippet that you want to add to your project.
- Select the documentation snippet that you want to add, and then click OK.
- All snippets are displayed in the Templates, Snippets & Special Topics Folder at the bottom of the topic hierarchy on the left side of your screen and in the snippet list.
- On the Views Bar, click Settings.
- Click the General Settings tab.
- Select Documentation
Automatic Text. - Click
, and then browse to the documentation snippet that you want to include in all topics. - For example, you can include an author section or a pre-release note in all topics.
- Copy the content of the snippet that you want to rename to the clipboard.
- On the Views Bar, click Project Manager.
- In the Topic Files folder, select the snippet that you want to remove or rename.
- Click Remove
. - Add a snippet with a new name to your project and paste the content of the old snippet into the new snippet.
- On the Content Manager menu, click the New Topic
arrow. - Select New Snippet.
- In the Editor click Save
. - In the Add Files to the project dialog box, find the folder where you want to save your new snippet to.
- In the Name box enter a name for your snippet and save it.
- All snippets are displayed in the Templates, Snippets & Special Topics Folder at the bottom of the topic hierarchy on the left side of your screen and in the snippet list.
|
Copyright (c) 2000-2008 toolsfactory software inc. All rights reserved.
|




To include an external text file