How to add an additional language in Code Macro

I am not able to add a language because I simply don't have the link 'Add additional language. I have system administrator rights so I should actually have the rights to do so.

 

image2016-11-28 16:3:18.png

2 answers

This widget could not be displayed.
Sam Hall Community Champion Nov 28, 2016

Hi Alexa, 

This is not possible in Cloud (without using a custom add-on like that suggested by @Robert Massaioli in the other answer).

Comparing the cloud documentation at: https://confluence.atlassian.com/confcloud/code-block-macro-724765175.html

...with the server documentation at: https://confluence.atlassian.com/doc/code-block-macro-139390.html

Only the server documentation has the "To add an additional language" section. 

I suspect this is because adding an additional language involves JavaScript, and Macros involving this have restricted functionality in Cloud instances: https://confluence.atlassian.com/confcloud/restricted-functions-in-confluence-cloud-734070955.html

Sam

This widget could not be displayed.

You could try and install the Better Code Block macro for Confluence Cloud that I wrote. It supports many more languages: https://cloud-code-macro.atlassian.io/docs/home

Suggest an answer

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

Why start from scratch? Introducing four new templates for Confluence Cloud

Hi my Community friends!  For those who don't know me, I'm a product marketer on the Confluence Cloud team - nice to meet you! For those of you who do, you know that I've been all up in your Co...

482 views 6 6
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you