You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
ID: 306c4f25-192e-0980-c663-d829f38ef7c4
Version Independent ID: 8918a37b-cbfa-33f1-21e2-6bf5ea3ccb54
@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.
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.
@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.
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
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.
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.
@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.
Activity
mr-intj commentedon May 27, 2020
Isn't that just HTML?
I think (some/all?) HTML tags are valid within XMLDoc, but they're not necessarily XMLDoc tags...
TobiasKnauss commentedon May 27, 2020
@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.
svick commentedon May 27, 2020
@TobiasKnauss
Here:
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.
TobiasKnauss commentedon May 28, 2020
@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.
BillWagner commentedon May 28, 2020
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
Are there others?
svick commentedon May 28, 2020
@BillWagner
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.TobiasKnauss commentedon May 28, 2020
@svick I have found
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.
svick commentedon May 28, 2020
@TobiasKnauss Apart from the ones you listed, there's also "a" and "tt". AFAICT, that's all of them.
TobiasKnauss commentedon May 28, 2020
@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.