yaml code block macro - add language

Adnan Siddiqui February 5, 2018

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.

https://confluence.atlassian.com/doc/code-block-macro-139390.html

 

 

1 answer

1 accepted

1 vote
Answer accepted
Stephen Deutsch
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 6, 2018

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

Adnan Siddiqui February 7, 2018

thanks this helped.

Manu
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 28, 2019

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
Stephen Deutsch
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 2, 2019

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.

Eric Horne
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 12, 2019

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
Alexander Stohr
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 27, 2019

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

Alexander Stohr
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 27, 2019

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

Nar Kumar C. - Narva Software
Atlassian Partner
October 16, 2019

You can use Code Syntax Highlighter from Marketplace: https://marketplace.atlassian.com/apps/1219685/code-syntax-highlighter

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
TAGS
AUG Leaders

Atlassian Community Events