Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Where is the button to add a Code Block Macro Language

Marco Lisi
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!
November 20, 2015

This question is in reference to Atlassian Documentation: Code Block Macro

The article mentions Add a new language, but I do not see this button. See screenshot below. Is this normal?

image2015-11-20 10:51:34.png

3 answers

1 accepted

0 votes
Answer accepted
Bob Swift
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.
November 21, 2015

I don't think that is available for Cloud???

0 votes
Loïc Dewerchin
Contributor
March 15, 2018

Well I am on Server, not Cloud ...but I suppose it's the same on cloud.

Note the following option is available starting from Jira 7.5 on server , it should have been active on Cloud for quite some time now

 

There isn't a button to add/change to a specific language.  Just add a code macro in visual mode , then switch to text mode and you will see something like this :

 

{code:java}
// code placeholder
{code}

 

just replace the java keyword with the language of your choice , you can find the list here: https://jira.atlassian.com/browse/JRASERVER-21067

Strange enough I cant find this list in the official JIRA documentation. Not linked in the release notes either : https://confluence.atlassian.com/jirasoftware/jira-software-7-5-x-release-notes-934719297.html#JIRASoftware7.5.xreleasenotes-tweaksMoreimprovements

0 votes
Steve Gerstner [bridgingIT]
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.
November 20, 2015

I'm not sure, but maybe it's something on security settings.

 

Does your account has confluence- or system-administrator permissions?

 

You can configure the Code Block macro to use a specific language and theme by default and also upload new lanuages. You need Confluence Administrator permissions to change the default theme and language and System Administrator permissions to upload new languages.

Regards

 

Steve

Marco Lisi
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!
November 23, 2015

I thought that was the case but I looked and I'm part of every role/group in JIRA, including the one for Confluence. So I'm guessing it is not a security setting.

dosjots March 26, 2016

I'm having the same issue though I'm using a cloud instance.  Can someone from Atlassian confirm if adding custom languages for the code block macro is supported or not?  

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Upcoming Confluence Events