-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
support syntax highlighting for code documentation comments #75181
Comments
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. |
The impression I have is that the If this was going to be exposed, wouldn't it be better to expose it as just And people (like me) just use it as a stand in even outside of analzyer tests as there is no better option. |
I added tasks to the main comment here including the different requests we have here, I think that while discussing having syntax highlighting inside |
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:
tasks from this issues:
The text was updated successfully, but these errors were encountered: