You are here: AxTools > CodeSMART 2007 for VB6 > Documentation > User's Guide > Commenting Tools > Inserting Embrace-Type Comments
While browsing this page, why not start downloading the evaluation setup kit (direct download, no questions asked).

Inserting Embrace-Type Comments

Embrace-type (block) comments represent descriptive comments that are placed above and below a block of contiguous code lines. They can be used to pinpoint common properties of the lines belonging to the section of code they 'embrace'.

By using the CodeSMART commenting tools you can use four different types of block comments:

  • 'Added by' comments used to comment mark code lines that were inserted in a project.
  • 'Modified by' comments used to mark code changes and provide change history.
  • 'Removed by' comments used to comment-out blocks of code.
  • Custom comments used to insert a custom comment line above and below a code selection, good in situation when you want to mark a few code lines as having a certain property.

To insert embrace-type (block) comments:

  1. Open the project that contains the target file.
  2. Open the code module of the component you want to insert the block-type comments in.
  3. Select a line or a section of code.
    Comments
  4. Click Embrace Comment <Added by.. at.. on..> (for example) on the Comments pull down menu of the Code Edit Tools toolbar or select the same entry in the CodeSMART main menu. Two comments will be inserted above and below the previously select code.
    Comments
    The code that is actually inserted can be customized by using the Comment Templates Manager.

See Also

Commenting Tools Overview
Comment Templates
Inserting Header Comments
Inserting Inline Comments
Removing Comments

Back To Top

Copyright © 2008 AxTools - CodeSMART 2007 for VB6 - Commenting Tools