Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Code styles are not applied

I have the settings as shown in the attached image, but the code style does not change.
It does not change even if I set a style other than confluence.

In the note, the language selection is set firmly to JavaScript.スクリーンショット (5).pngスクリーンショット (7).png

1 answer

0 votes

Hello, and welcome to Atlassian Community. It's nice to have you join us!

I believe you don't see the changes because you are using the new Confluence editor for your code block macros. The Code Block Administration menu currently only works with code macros on the Legacy editor pages. Have a look at the top of the page, Convert pages to the new editor to see an example of how Legacy pages look vs. the New editor. We raised a bug about this previously:

  • CONFCLOUD-67536 Code Macro Administration Settings Are Not Applied to New Editor Code Block

However, it has since been closed, and I'll direct you to a feature request to add these customization features to the Code macro on the new editor:

  • CONFCLOUD-72003 Allow further customization of the "Code" macro in the new editor (Different background color & ability to collapse the code block) 

In the meantime, the changes should still work on Legacy editor pages. I hope that helps, but please let me know if you have any further questions.

Take care,

Shannon | Atlassian Community Support

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Site Admin
TAGS
Community showcase
Published in Confluence Cloud

🏠 Say hello to the new Confluence Home!

Hi Atlassian Community, My name is DJ Chung, and I’m a Product Manager on the Confluence Cloud team. Today, I’m excited to share a new and improved version of Home. The new Home helps you ...

41,900 views 29 132
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you