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

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

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Fixed
    • Macros - Other
    • None
    • 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.

      Status Update 18 April 2021

      We have been working to improve the code blocks experience and in regard to this ticket requests', we already shipped the following capabilities 1. Showing line numbers & 2. A handy Copy button, that could allow users to copy the content from this macro. We recommend for you to follow this ticket for the rest of the requests. Meanwhile, for collapsing the code block, one workaround that could elevate some of the pain is to put code blocks inside expands.

      Thanks,
      Yousef

      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

              Unassigned Unassigned
              halegra Helton A. (Inactive)
              Votes:
              454 Vote for this issue
              Watchers:
              237 Start watching this issue

                Created:
                Updated:
                Resolved: