Skip to content

Comment Tags missing #18659

Closed
Closed

Description

@TobiasKnauss

There are more tags than described here and in the spec.
Please add the tags, which are not yet documented, into the spec and and to the documentation tag reference (a sub-page of this).
So far I found: <e>, <i>


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Activity

  1. mr-intj commented on May 27, 2020

    @mr-intj

    Isn't that just HTML?

    I think (some/all?) HTML tags are valid within XMLDoc, but they're not necessarily XMLDoc tags...

  2. TobiasKnauss commented on May 27, 2020

    @TobiasKnauss
    ContributorAuthor

    @mr-intj: possible, I don't know much about HTML. Where does the documentation say that HTML is allowed? And I doubt that all HTML is possible, it likely is just a small subset.

  3. svick commented on May 27, 2020

    @svick
    Member

    @TobiasKnauss

    Here:

    The compiler will process any tag that is valid XML. The following tags provide generally used functionality in user documentation.

    How those XMLs tags are rendered when made into a webpage (or anything else) depends on the documentation tool and isn't something the compiler is concerned with.

  4. TobiasKnauss commented on May 28, 2020

    @TobiasKnauss
    ContributorAuthor

    @svick Thanks for the explanation, that makes sense. However, this should be written in that page also.
    And I still would like to know which tags are supported by Visual Studio itself when showing the intellisence docu in tooltips. This actually was my intention for writing the first post, but I didn't recall the external documentation tools because we only use our XML docu inside VS so far.

  5. BillWagner commented on May 28, 2020

    @BillWagner
    Member

    Great discussion here.

    What we've traditionally done in this area is cover the rules the compiler follows for C# documentation comments. There's a small set of recommended tags, and as pointed out, any valid XML tag can be used. That's correct, but not as helpful.

    We'll be constantly chasing other innovations if we try to update this page with an exhaustive list of tags used by different tools (some by Microsoft, others by community) to build documentation. Instead, in the programming guide, I recommend we link to the docs on the most popular tools where they cover what tags each supports. My initial list would be

    • Sandcastle
    • DocFx

    Are there others?

  6. svick commented on May 28, 2020

    @svick
    Member

    @BillWagner

    Are there others?

    As mentioned above: VS/Roslyn. The VS QuickInfo for C#, which is powered by Roslyn, supports quite a few HTML-like tags (e.g. <b> or <i>), which are not mentioned in the spec or in the document we're talking about. If anyone is interested, here is the relevant Roslyn code.

  7. TobiasKnauss commented on May 28, 2020

    @TobiasKnauss
    ContributorAuthor

    @svick I have found

    • "br"
    • "i" / "em"
    • "u"
    • "b" / "strong"

    Are there others that I have missed?
    Please add them to the documentation, and (@BillWagner) I again suggest (see #18660) that you also add them to the spec, because they are part of the code.

  8. svick commented on May 28, 2020

    @svick
    Member

    @TobiasKnauss Apart from the ones you listed, there's also "a" and "tt". AFAICT, that's all of them.

  9. TobiasKnauss commented on May 28, 2020

    @TobiasKnauss
    ContributorAuthor

    @svick yes, I've seen them, but they are "just" alternatives for other tag names, which are documented already. Nevertheless, they should also appear in the documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions