You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In many libraries authors add code sample inside the <code> documentation comment, it would be helpful to have syntax highlighting for these code comments
Background 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
// lang=C#-testvarcode= """
using System;
using System.Text;
var builder = new StringBuilder();
test.AppendLine(""Hello, World!"");
Console.WriteLine(builder.ToString());
""";/// <code lang="C#-test">/// using System;/// using System.Text;/// var builder = new StringBuilder();/// test.AppendLine("Hello, World!");/// Console.WriteLine(builder.ToString());/// </code>voidTest(){}
from vscode:
The text was updated successfully, but these errors were encountered:
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:
The text was updated successfully, but these errors were encountered: