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

0 vote
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

0 vote

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Tuesday in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

474 views 19 9
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