C
C#8mo ago
Man

❔ `<code>` xml docs not showing nicely in VSCode

I want to use <code> in my XML docs to provide examples documentation. However, extra \ appears before certain characters when you actually check the documentation inside the IDE. Is there an easy fix for this?
No description
7 Replies
Mayor McCheese
Mayor McCheese8mo ago
Can you try and wrap it in a cdata node? <![CDATA[stuff here]]>
Man
Man8mo ago
I will try. I have never heard of "cdata nodes" but I will look it up.
Man
Man8mo ago
If this is the correct syntax, it isn't working.
No description
Mayor McCheese
Mayor McCheese8mo ago
it was worth a shot sorry, that was my best idea NB: cdata is basically like a way to tell xml parsers, everything between <![CDATA[ and ]]> so parsers break on things like & which is where you can use &amp; instead but in a cdata section you're telling the parser, just pass through
reflectronic
reflectronic8mo ago
i think you should open an issue on https://github.com/dotnet/vscode-csharp
GitHub
GitHub - dotnet/vscode-csharp: Official C# support for Visual Studi...
Official C# support for Visual Studio Code. Contribute to dotnet/vscode-csharp development by creating an account on GitHub.
reflectronic
reflectronic8mo ago
it seems like a mistake
Accord
Accord8mo ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server
More Posts