When editing a case description, I choose the option to add code. I copy some well-formatted JavaScript code from VS Code on my Mac, and paste in the provided grey box in the JIRA case description. That strips out all the link breaks and ruins the code formatting.
It turns code like this:
Into code like this:
that makes it really hard to read. any help would be greatly appreciated. thanks!
Hi John,
What I would suggest doing when adding code snippets is to switch from 'Visual' editing mode to 'Text' editing mode.
Once you're in Text mode, paste your code in and wrap them in {code} {code} tags. Your code formatting should be retained.
This KB explains a little on Visual Editing and mentions that formatting may go off when using Visual Editing mode - https://confluence.atlassian.com/jiracoreserver/visual-editing-939937919.html
Thanks! that worked perfectly :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.