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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.