The <code> tag gives you a way to indicate multiple lines as code. Use <c> to indicate that text within a description should be marked as code.
Syntax
<code lang="C#|VB">text</code>
The lang attribute is optional. It has two allowed values - VB and C#. If omitted, the code is general. If specified, the code is marked as C# or Visual Basic and can be filtered with language filter.
|
||||||||
Note
Remember that XML comments must be well-formed XML. Therefore some characters cannot be used in attribute or tag value. Those characters often appear in the source code so you have to be careful especially when using <code> or <c> tags. You must escape the following characters:
Character |
Escape sequence |
quote (") |
" |
apostrophe (') |
' |
ampersand (&) |
& |
less than (<) |
< |
greater than (>) |
> |
The safest way to enter these characters is to use VSdocman WYSIWYG comment editor.