Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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 formatting and syntax coloring don't work Edited


I'm a using Confluence Cloud and I am trying to insert code on a page. 

When I type /code, the code snippet macro appears properly but code formatting and syntax coloring don't seem to work.

This is an example of what I get :


When typing an open parenthesis or curly bracket, it automatically adds the closing one, but that's all. Not indentation, no colors.

Selecting another langage doesn't change anything.

Any idea of how I can get syntax coloring to work?


One more thing: in Confluence settings, I've set "Configure Code Macro" to the followings:

  • Default theme : Confluence
  • Default langage : Java

Although these settings are saved, when I add a new code block, the selected langage is not set to Java.


Tested on Chrome and FireFox with same problem.


Thanks in advance!



1 answer

1 accepted

3 votes
Answer accepted

Hi @Olivier Levrey and welcome to Community!

It looks like you're using the new Confluence Cloud editor (more information here), which is why you don't have as much customization as expected. This is already tracked here: Allow further customization of the "Code" macro in the new editor. You can add yourself as watcher to be updated and you also can vote for this feature to show your interest.

You also can detail your feedback directly from Confluence:


Hope this helps,

- Manon

Thank you Manon.

I found the first link you gave after Googling a little bit, but I couldn't find the track link! I added myself as watcher as you suggested and upvoted the issue.

I am waiting for it to be resolved now...

By the way: since I am new to Confluence, I don't know much about the previous editor, but I find the new one very clean and easy to use!  

Like Manon Soubies-Camy likes this

Same issue with C#...  but does color coding with other formats such as JSON...

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Confluence

What do you think is the most *delightful* Confluence feature? Comment for a prize!

- Create your own custom emoji 🔥 - "Shake for Feedback" on mobile 📱 - An endless supply of GIFs via GIPHY 🤩 Is there anything quite as nice as a pleasant surprise? Comment below with what...

342 views 23 8
Join discussion

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