How to Wrap Long Line in Jira Code Block Macro?

Peng Zhang December 12, 2012

Hi,

Can you show me how to wrap long line in Jira Code Block Macro?

If I write long code in code block macro in Jira, it will not wrap and it employs a horizontal scroll bar, and I have to move the scroll bar to see the contents. This is not very convenient.

Jira: v5.1.6#785

Browser: chrome 15.0.874.106.

2 answers

0 votes
Lawrence Dol March 22, 2021

Contrariwise, forcing code wrapping makes many code blocks darn near impossible to read. Very often context matters as to whether it's helpful or destructive to wrap any particular block.

I would oppose unconditionally wrapping blocks. Perhaps adding a user preference or a button to wrap/not-wrap to each code-block display.

And, of course, the underlying problem is that code blocks are really just too narrow.

0 votes
AhmadDanial
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 12, 2012

Hye there, pzhang.

https://jira.atlassian.com/browse/JRA-30950

Hope this helps!

jaykhimani January 19, 2018

Any plans on this to be implemented (in Confluence as well?)

Suggest an answer

Log in or Sign up to answer