Place the text in between a pair of two curly braces. Example
Have a look at https://jira.atlassian.com/secure/WikiRendererHelpAction.jspa?section=texteffects for more text effects.
Does this solution still work? I would like to be able to sometimes add a bit of code to a comment and would like to change the font to identify as such but putting double curly braces surrounding it does not work, nor any similar ways I have tried.
However, I just noticed in the formats dropdown here there is a Code Block option I would like to try but it is not in the toolbar on my Jira board.
// Keep the console window open in debug mode.
Console.WriteLine("Press any key to exit.");
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events