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

Allow further customization of the "Code" macro in the new editor

    XMLWordPrintable

    Details

    • Feedback Policy:

      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.

      Description

      Allow further customization of the "Code" macro in the new editor. The "Code" macro replaced "Code Block" macro, but it does not allow as many customization options as the macro it replaced.

      Current Situation

      Currently, the "Code" macro replaced the "Code Block" macro in the new editor, but this new macro won't provide users with much customization options (just its width) as much as the old macro did. This includes:

      • Change the background color (theme)
      • Collapse
      • Show line numbers
      • A handy Copy button, that could allow users to copy the content from this macro;

      Point of attention

      It seems that this macro is not currently highlighting some languages, an example of this is "Shell" as can be seen in the next screenshot no syntax highlight is present in this simple line of code

      Additional Note
      Provide support for other languages too, e.g. MatLab

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              halegra Helton A.
              Votes:
              314 Vote for this issue
              Watchers:
              147 Start watching this issue

                Dates

                Created:
                Updated: