How to force unwrap Code Macro
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
- Navigate to the Stylesheet screen in Confluence Admin (at Browse >> Confluence Admin >> Stylesheet)
Add the following CSS:
code { /* forces the text not to wrap */ white-space: nowrap !important; }
- Click Save
Navigate to the page containing the wrapped code block. It should now be unwrapped.
Last modified on Apr 5, 2016
Powered by Confluence and Scroll Viewport.