Open Meir017 opened 5 days ago
Changing from Feature Request to Design Debt, since this feature was originally implemented in #35667 and the more recent LSP work failed to meet parity.
@sharwell we added support for c# syntax highlighting within a doc comment codeblock in VS?
@CyrusNajmabadi Sorry, I added the above comment after seeing #75215. There are two separate reports here: a request for syntax highlighting, and an observation that the comment renders as inline text instead of a code block. The part implemented previously is just the code block portion.
Summary
In many libraries authors add code sample inside the
<code>
documentation comment, it would be helpful to have syntax highlighting for these code commentsBackground and Motivation
This type of syntax-highlighting already exists in the form of adding a
// lang=C#-test
or annotation an argument with[StringSyntax("C#-test")]
however, this doesn't work
from vscode: