@Megha Single back ticks don’t do synax highlighting and don’t allow for multi-line code snippets. In other Discourse forums I’m active in, triple backticks optionally followed by the language activate syntax highlighting.
Here we seem to have to use tildes instead:
~~~csharp using (var file = new FileStream("cookies.txt", FileMode.Open)) ~~~
Is rendered as
using (var file = new FileStream("cookies.txt", FileMode.Open))
I’m OK with either backticks or tildes but the respective toolbar button should format the code appropriately or we would end up with the same code dumps as in the old forum.