Comments Formatting

Comment formatting preferences allow you change how comments are rendered in tooltips.

You can choose the markup language used to render the comments from: Window > Preferences > DVT > Editors.

Available options are: Javadoc, Natural Docs, Verbatim and Autodetect.

  • Javadoc: Comments are always rendered using Javadoc markup language.

  • Natural Docs: Comments are rendered using Natural Docs markup language.

  • Verbatim: Comments are rendered as they are.

  • Autodetect: Automatically selects between Javadoc and Natural Docs for each comment based on the syntax. If no syntax is detected, the comment will be rendered Verbatim.

Note

Comments using both markup languages are not supported, they will be rendered using one of the markup languages.

Javadoc

Comments written in Javadoc will be formatted based on the following tags:

Tag Name

Comment

Tooltip Window

Notes

Author

../../_images/pss_javadoc_comment_author.png
../../_images/pss_javadoc_tooltip_author.png

Link

../../_images/pss_javadoc_comment_link.png
../../_images/pss_javadoc_tooltip_link.png

{@link object_name label}

As links you can have an object name. If you Ctrl + right click on a link, it will jump to its declaration.

Param

../../_images/pss_javadoc_comment_param.png
../../_images/pss_javadoc_tooltip_param.png

Return

../../_images/pss_javadoc_comment_return.png
../../_images/pss_javadoc_tooltip_return.png

See

../../_images/pss_javadoc_comment_see.png
../../_images/pss_javadoc_tooltip_see.png

@see object_name label

@see <a href=URL>label</a>

As links you can have: an object name, a file, a valid web URL. If you Ctrl + right click on a link that contains an object name, it will jump to its declaration. Everything you link with @see tag will be placed in a separate section at the bottom of the comment, named “See also”.

Since

../../_images/pss_javadoc_comment_since.png
../../_images/pss_javadoc_tooltip_since.png

Version

../../_images/pss_javadoc_comment_version.png
../../_images/pss_javadoc_tooltip_version.png

It’s similar to Specador documentation for Javadoc that you can check out right here.

Natural Docs

Comments written in Natural Docs will be formatted based on the following syntax:

Tag Name

Comment

Tooltip Window

Notes

Bold Font

../../_images/pss_naturaldocs_comment_bold.png
../../_images/pss_naturaldocs_tooltip_bold.png

Bullet List

../../_images/pss_naturaldocs_comment_list.png
../../_images/pss_naturaldocs_tooltip_list.png

Definition List

../../_images/pss_naturaldocs_comment_def.png
../../_images/pss_naturaldocs_tooltip_def.png

Heading

../../_images/pss_naturaldocs_comment_heading.png
../../_images/pss_naturaldocs_tooltip_heading.png

If the markup language preference is set to “Autodetect”, you must include another Natural Docs specific syntax in order to activate the Natural Docs formatter on this pattern.

Image

../../_images/pss_naturaldocs_comment_image.png
../../_images/pss_naturaldocs_tooltip_image.png

The path can be either absolute, relative to the current file or relative to additional image locations. To specify additional image locations use +dvt_natural_docs_image_locations directive.

Italic Font

../../_images/pss_naturaldocs_comment_italic.png
../../_images/pss_naturaldocs_tooltip_italic.png

Line Syntax

../../_images/pss_naturaldocs_comment_pre.png
../../_images/pss_naturaldocs_tooltip_pre.png

If the markup language preference is set to “Autodetect”, you must include another Natural Docs specific syntax in order to activate the Natural Docs formatter on this pattern.

Link

../../_images/pss_naturaldocs_comment_link.png
../../_images/pss_naturaldocs_tooltip_link.png

<label: URL>

<label at URL>

As links you can have: an object name, a file or a valid web URL. If you Ctrl + right click on a link that contains an object name, it will jump to its declaration.

Start Code

../../_images/pss_naturaldocs_comment_code.png
../../_images/pss_naturaldocs_tooltip_code.png

Topic Line

../../_images/pss_naturaldocs_comment_topic.png
../../_images/pss_naturaldocs_tooltip_topic.png

Underline Font

../../_images/pss_naturaldocs_comment_underline.png
../../_images/pss_naturaldocs_tooltip_underline.png

It’s similar to Specador documentation for Natural Docs that you can check out right here.