Reputation: 101166
How do I define programming language for the <code>
element in XmlDocs?
I'm having XML examples, but they are highlighted as C# (since it's a C# project).
Example:
/// <code>
/// <![CDATA[
/// <SaveConfig>
/// <File>Web.config</File>
/// <File>App.config</File>
/// </SaveConfig>
/// ]]>
/// </code>
/// </example>
Upvotes: 3
Views: 238
Reputation: 5607
Use the lang attribute of <code> tag. For example:
<code lang="C#"></code>
<code lang="VB"></code>
Upvotes: 1