C
C#13mo 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 McCheese13mo ago
Can you try and wrap it in a cdata node? <![CDATA[stuff here]]>
Man
ManOP13mo ago
I will try. I have never heard of "cdata nodes" but I will look it up.
Man
ManOP13mo ago
If this is the correct syntax, it isn't working.
No description
Mayor McCheese
Mayor McCheese13mo 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
reflectronic13mo 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
reflectronic13mo ago
it seems like a mistake
Accord
Accord13mo 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