I'm at my wits end with this. Its not just Jira, but code snippets are generally terrible replacements in HTML based windows. I get how HTML playsd with whitespace, but I feel like this has all gone back to the dark ages as far as development goes.
I just want to paste code in to a ticket comments, whether it is with the code snippet short cut button "<>" and maintain a few tabbed indentations.
Other tools like MS Teams implement this, in equally bad ways where the code is unreadable.
I'm not expecting an IDE, but the atrocious manner for code in comment mark up is stunning.