I´m not able to format the block with some C# code in this question as code.
Is it cause there is a BulletList before the code block?
I´m not able to format the block with some C# code in this question as code.
Is it cause there is a BulletList before the code block?
Yes, when formatting code inside of a list, appen 4 more spaces (8 in total) to the code block. Example:
Normal Code Block
Normal List item
Paragraph in list item
Code in List item
This was written:
Normal Code Block
- Normal List item
Paragraph in list item
Code in List item
For more information, see the Formatting Help