You are here: Creating Documentation > Topic Editor > Inserting Comments
Close
Doc-O-Matic 10
Inserting Comments

When you enter text in the Topic Editor Doc-O-Matic inserts your comments in the location you select as topic location. You can determine how to insert comments in your source code (C++, C#, Delphi, IDL, Java, JavaScript, VB.NET, MATLAB, ASPX, PHP and JSP) or in a DTX file. 

If you use sections to structure your topics section starters are inserted in your source code. A topic consisting of a Summary and a Parameters section will look like this:

// Summary // Locates a sting in this string list. // // Parameters // S - The string to be located // Index - The index of S is returned.

On the following Settings pages you can determine:

To determine
Select
Where comment blocks are placed
Which comment characters are used
What length text blocks may have
What minimum width the comments will have
Whether or not only /// comment characters are used
How much comments are indented
Whether or not topic IDs are inserted in your source code
Whether or not tokens are used
Whether or not comment characters start or end on a separate line
Whether or not only XML conform tags are used
  1. Choose which section headings are inserted. On the Sections page enter the section starter that you want to insert as section heading at the top of the list in the Starters box of the corresponding section.
  2. Use section delimiters. Select the Always use section delimiters check box on the [General Settings] > Editor > Comments page.
  3. Insert trimmed lines before section starters. Select the Insert trim line as separator before section headings check box on the [General Settings] > Editor > Comments page.
  4. Use Javadoc tags as comment standard. On the Documentation Standard page select Javadoc tags. Only for C++, C#, Delphi, IDL, Java, JavaScript, VB.NET, MATLAB, ASPX, PHP and JSP source code.
  5. Use XMLDoc tags as comment standard. On the [General Settings] > Editor > Standard page select the XMLDoc tags check box. Only for C++, C#, Delphi, IDL, Java, JavaScript, VB.NET, MATLAB, ASPX, PHP and JSP source code.
  6. Only insert tags that conform to the XML standard. On the [General Settings] > Editor > Standard page select the XMLDoc compatible tags check box
  1. Doc-O-Matic uses the first character entered in the corresponding box on the [General Settings] > Documentation > Special Characters page, to format
    • bulleted lists
    • table alignments and headings
    • and headings
  2. To replace these characters enter them as first characters in the corresponding box.
  3. To draw walls around your comments, select the Walls check boxes on the [General Settings] > Editor > Comments page and enter the characters you want to use for your walls.
  4. To draw all walls using the same width select a width in Minimum width of comment on the [General Settings] > Editor > Comments page.

If the option Always use section delimiters on the [General Settings] > Editor > Comments page is turned on, Doc-O-Matic uses the first starter delimiter that appears in the starter delimiter list on the [General Settings] > Sections > Delimiters page.

Comment Finding, Comment Characters, Editor, Comment Options, Documentation Standard

Applies to: Doc-O-Matic Professional.

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