Is there a code box with tabs for multiple programming languages?

Ivan Agafonov
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!
March 27, 2018

Is there a macros that could display one code box for several programming languages (as in the screenshot below)?

sample.png

1 answer

2 votes
Eric Lam
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 27, 2018

Hey Ivan,

There isn't anything out of the box in Confluence that allows to show a tabbed layout but with the third party Composition Tabs & Page Layout add-on, it is possible to achieve a layout similar to your example screenshot.

After installing the Composition Tabs & Page Layout add-on, you can add a Deck of Cards and then add multiple cards that each contain Code Blocks with the relevant syntax highlighting.

A picture describes a thousand words!

The Editing Page raw macro look:

EditingPageMacroLook.png

 

The End User Page look:

EndUserPageLook.png

 

Cheers,

Eric

Ivan Agafonov
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!
March 28, 2018

Thx a lot for your reply! That macros looks absolutely great. But we've got the cloud version, so it's not compatible :(

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events