TIL you can have syntax highlighting with code blocks in JIRA.
Here’s an example inspired from the docs:
{code:java} // Some comments here public String getFoo() { return foo; } {code}