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

Applying Java syntax highlighting by default in the Code Snippet in the new Cloud editor

    XMLWordPrintable

Details

    • 1
    • 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

      Issue Summary

      As stated here, in the legacy editor, the default language is Java to apply syntax highlighting in the code block macro, even if you don't select a language. 

      In the new Cloud editor, the Code Snippet doesn't apply Java syntax highlighting by default. To get this syntax applied, you need to manually select Java. 

      Steps to Reproduce

      1. Create a page and insert a Code Snippet macro
      2. Add code inside that macro and do not select any language 
      3. Publish the page

      Desired Feature

      Code Snippet should apply the Java syntax highlighting by default in the new editor, even if a language wasn't selected. 

      Actual Results

      Code Snippet macro isn't applying Java syntax highlighting by default in the new editor. To get this applied, it is required to select Java.

      Language set to none:

      Language manually set as Java:

       

      Workaround

      Currently, a workaround for that behavior would be selecting manually Java as the language for that macro. 

      Attachments

        1. Screenshot 2024-03-15 at 11.14.12.png
          29 kB
          Eduarda Franck
        2. Screenshot 2024-03-15 at 11.14.01.png
          36 kB
          Eduarda Franck
        3. Screenshot 2024-03-15 at 11.15.27.png
          38 kB
          Eduarda Franck
        4. Screenshot 2024-03-15 at 11.14.35.png
          28 kB
          Eduarda Franck

        Issue Links

          Activity

            People

              Unassigned Unassigned
              40f04a0b8fd0 Eduarda Franck
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: