You are here: AutoDoc and Formatting > Formatting the Output > Formatting Topic Pages > Formatting Code
Close
Doc-O-Matic 10
Formatting Code

An important part of your documentation is source code that is included in your topics. You can manually add code in the Editor or automatically include source code parts in the Syntax and the Body Source sections.

  1. On the Quick Access Toolbar, click Settings .
  2. Click the corresponding Configuration tab.
  3. Select AutoDoc > Syntax Highlight.
  4. Do one of the following:
  5. Select the Syntax highlight CODE blocks check box.
  6. Select the programming language that you want to use to syntax highlight code blocks in generic topics.
  7. Select AutoDoc > Syntax Highlight > Formats.
  8. Select the syntax element you want to format and click Edit.
  9. Change the character formatting for syntax elements.
  10. Select Files & Format > Layout > Formatting.
  11. Use the Code and the <C> Font (HTML, RTF and PDF) Formatting Element, to format code paragraphs and code characters.
  12. Click a HTML configuration tabs.
  13. Select Files & Format > Output Options.
  14. Select the Create Copy Source links for code blocks check box.
  1. On the Quick Access Toolbar, click Settings .
  2. Click the corresponding Configuration tab.
  3. Select AutoDoc > Code Options.
  4. Select the corresponding check boxes.
  5. Select Files & Format > Layout > Formatting.
  6. Use the Syntax Source Code, and the Syntax Section Heading Formatting Element or create your own section and heading element to format syntax sections.
  7. Use the Section Tabs Formatting Elements to format section tabs and their borders.
  8. Change the heading of one of the syntax sections, by changing the name of the Syntax sections in the corresponding section definition on the Sections page.
  9. Change the heading text of tabbed syntax sections, by changing the tab set name for each section that is displayed in the tab set on the Files & Format > Sections page.
  10. Format the tab set heading by using the Syntax Section Heading Formatting Element.
  1. On the Quick Access Toolbar, click Settings .
  2. Click the corresponding Configuration tab.
  3. Select Files & Format > Layout > Formatting.
  4. Use the Body Source Header, Body Source Link List and Code Formatting Element.
  5. You can format the description of the body source by doing the following:
    • Use the Text Formatting Element.
    • Create a user-defined section element named body source for the description text.

Code Options, Sections, Syntax Highlight, Output Options (HTML)

Syntax Source Code, Syntax Section Heading, Section Tabs, Code, <C> Font, Body Source, Text, Body Source Header, Body Source Link List

Copyright © 2000-2020 toolsfactory software inc. All rights reserved.