How to force unwrap Code Macro

Still need help?

The Atlassian Community is here for you.

Ask the community

These instructions on customizing Confluence are not officially supported, per the Atlassian Support Offerings. This has been tested in Confluence 4.3.3.

Purpose

If the text inserted into a Code Macro in Confluence is too long, Confluence will wrap it to a new line.

Solution

  1.  Navigate to the Stylesheet screen in Confluence Admin (at Browse >> Confluence Admin >> Stylesheet)
  2. Add the following CSS:

    code { /* forces the text not to wrap */  
        white-space: nowrap !important;  
    }
  3. Click Save
  4. Navigate to the page containing the wrapped code block. It should now be unwrapped.

Last modified on Apr 5, 2016

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.