Uploaded image for project: 'Confluence Cloud'
  1. Confluence Cloud
  2. CONFCLOUD-67816

Code snippet lacks crucial functionality existing in previous code macro

XMLWordPrintable

    • 4
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

      We regularly put command outputs or examples in the code macro and set it collapsible so that the reading flow is not interrupted by it, but the new code snippet has no option for this.

      With the new code snippet, you can only set the language, while in the older code macro you could also control the line numbering, theme and set it collapsible.

      Allowing to set the title is important in relation with the collapsible feature as it makes it more clear what the code block was about without having to expand it.

      Controlling line numbers is useful when you put in clear text or commands itself, for which you often don't want to show line numbers. In other cases you do want to show the line numbers but control the starting number. For instance when it is part of a larger block of code.

      Themes are used by us to differentiate between  output extracts (using a dark background to mimic a console screen) and examples of commands that must be used or plain text (using a white background).
      While perhaps less important than the collapse feature, it was something that was available and actively used, and I don't understand why this general dumbing down and taking away control from the users was done.

              Unassigned Unassigned
              freek.dhooge Freek D'Hooge
              Votes:
              141 Vote for this issue
              Watchers:
              58 Start watching this issue

                Created:
                Updated: