How to define a programming language for `<code>` element

How to define a programming language for an element <code>in XmlDocs?

I have XML examples, but they are highlighted as C # (since this is a C # project).

Example:

/// <code>
/// <![CDATA[
/// <SaveConfig>
///         <File>Web.config</File>
///         <File>App.config</File>
/// </SaveConfig>
/// ]]>
/// </code>
/// </example>
+3
source share
1 answer

Use the lang attribute of the code > tag . For instance:

<code lang="C#"></code>
<code lang="VB"></code>
+1
source

Source: https://habr.com/ru/post/1787917/


All Articles