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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Same answer in: https://answers.atlassian.com/questions/32521771
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.