Skip to content

Support for additional comment styles #1433

Closed
Closed
@Gerrit0

Description

@Gerrit0

Search Terms

triple slash comments, c# style documentation, comment style

Problem

TypeDoc doesn't support relatively common comment styles

Suggested Solution

Add a new option: commentStyle which determines how TypeDoc searches for comments:

  • JSDoc (default) - /** ... */
  • Block - /* ... */
  • TripleSlash - /// ...
  • All - //, ///, /* */, /**

This suggestion was previously rejected (see #963), but my stance on it has completely changed having used a language which uses /// comments. They are much nicer for dealing with embedded codeblocks that contain block comments.

At the same time, for JSDoc and Block style comments, this should add support for the escaping mechanism used by TSDoc.

Cross linking:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions