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

yaml code block macro - add language

The link below lists yaml as one of the code blocks, but its not listed in our instance. I also dont see an option to add via configure code block macro. Any ideas how can we get it added? I am a site admin and have full rights.



1 answer

1 accepted

1 vote
Answer accepted

I'm guessing you are on Confluence Cloud? YAML syntax highlighting was added to Confluence Server version 6.7, but doesn't appear to be added in Cloud yet, and in Cloud there is no option to add new highlighting rules.

However, you could install the Better Code Macro Marketplace app, which has many more syntax highlighting options and which is free (and directly from Atlassian).

thanks this helped.

Unfortunately, "Better Code Macro" is now 'hidden from public view because it no longer meets the requirements for Atlassian Marketplace'.

Like Ilia Tsvetkov likes this

You're right. Atlassian are removing apps from the Marketplace without any Terms of Service, but seems strange that they would remove their own app.

I also checked the regular code macro, in case they enabled YAML support, but apparently they still don't support it as of today.

Not supporting YAML in the code block on hosted confluence seems like a poor choice. What can we do to get Atlassian to add YAML?

Like # people like this

Not solved for me.
Me-too wants a solution - and i am indifferent if Atlassian or free plug in will solve this for me.

The current state of "Better Code Macro" is "unsupported" - but it still looks available to me. I might be on error.

You can use Code Syntax Highlighter from Marketplace:

It works similar ways as code macro but supports almost all programming languages and text formats in use including YAML.

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...

415 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