Code Annotations with C# #2792
-
|
I am trying to get code annotations to work with C#. The example from the docs (written in JavaScript) works fine, but I cannot get it to work with C# code. (And of course surrounded by the usual 3 markdown ticks. I tried to change the C# identifier according to the pygments lexers documentation (I tried "csharp", "c#" and also some random ones like ".cs") but cannot get it to work. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
|
Annotations must be encapsulated inside comments, so I guess for C# that is either Also see the example in the documentation. |
Beta Was this translation helpful? Give feedback.
Annotations must be encapsulated inside comments, so I guess for C# that is either
// (1)or/* (1) */😊 Also, not that you must set the.annotateclass explicitly, so a slightly different prelude syntax is necessary:Also see the example in the documentation.