• 44
    • 3
    • We collect Confluence feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

      NOTE: This suggestion is for Confluence Server. Using Confluence Cloud? See the corresponding suggestion.

      In past versions of the code macro, long lines were wrapped up. This feature was implemented in NCODE-142.

      The wrap up of the long lines caused a problem with a mismatch between the line numbers and the actual line. To solve this bug (CONF-23565) we removed the functionality to wrap up text.

      There should be an option to wrap up text in the code macro. Adding a scroll bar may work on a web browser but it is not a good solution for PDF exports or print outs.

      Affected version of the code macro plugin: 2.1.3.

      Workaround:

      Add the following CSS to the global stylesheet:

      .codeContent .syntaxhighlighter table td.code .container .line {
          white-space: normal!important;
      }
      

            [CONFSERVER-31476] Code macro should wrap long lines

            Atlassian Update - 08 October 2024

            Hi everyone,

            This is Beau from the Confluence team. I'm pleased to let you know that we have released a set of enhancements for Code Block Macro in the Confluence Data Center 9.1 release.

            With the enhancements that we are delivering, we have released a feature to allow you to easily wrap long lines of text using a button while viewing a code block. To learn more about this feature please see our product documentation.

            Kind regards,

            Beau

            Confluence Data Center

            Beau Williams (Inactive) added a comment - - edited Atlassian Update - 08 October 2024 Hi everyone, This is Beau from the Confluence team. I'm pleased to let you know that we have released a set of enhancements for Code Block Macro in the Confluence Data Center 9.1 release . With the enhancements that we are delivering, we have released a feature to allow you to easily wrap long lines of text using a button while viewing a code block. To learn more about this feature please see our product documentation . Kind regards, Beau Confluence Data Center

            etienne added a comment -

            It appears this issue is not prioritised (created in 2013) : don't forget to "watch" and "vote" (top right of the issue under "People" menu) ✅

            etienne added a comment - It appears this issue is not prioritised (created in 2013) : don't forget to "watch" and "vote" (top right of the issue under "People" menu) ✅

            Was super frustrating not to have this, then I thought about how Google docs does this.

            Just create a Confluence table with a single cell...then place 100% raw text, no formatting into the cell.  voila!

             

            Erik Ostermueller added a comment - Was super frustrating not to have this, then I thought about how Google docs does this. Just create a Confluence table with a single cell...then place 100% raw text, no formatting into the cell.  voila!  

            Another +1

            Corrine Lin added a comment - Another +1

            This issue was created in 2013, Almost 10 years ago!! it has almost 200 votes, why is it still gathering interest and not being worked upon? what else do u need Confluence team? Seriously disappointing

            Tanmoy Bhattacharjee added a comment - This issue was created in 2013, Almost 10 years ago!! it has almost 200 votes, why is it still gathering interest and not being worked upon? what else do u need Confluence team? Seriously disappointing

            We're also plagued by this .... this ticket got created in 2013....seriously?

            Deleted Account (Inactive) added a comment - We're also plagued by this .... this ticket got created in 2013....seriously?

            lackovic added a comment -

            182 voted for this issue to be fixed: how many more are needed until this task gets assigned to someone?

            lackovic added a comment - 182 voted for this issue to be fixed: how many more are needed until this task gets assigned to someone?

            The lack of this functionality is biting me constantly...

            Gerrit Helm added a comment - The lack of this functionality is biting me constantly...

            Please have this implemented 

            Tanmoy Bhattacharjee added a comment - Please have this implemented 

            Bump...

            Jodi Neufeld added a comment - Bump...

              f071738db562 Beau Williams (Inactive)
              aconde Alejandro Conde Carrillo (Inactive)
              Votes:
              223 Vote for this issue
              Watchers:
              103 Start watching this issue

                Created:
                Updated:
                Resolved: