Missing Code macro tabs? Here's a little workaround

Kristian Klima
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.
December 13, 2023

I often hear Confluence users, developers and documentation/content writers alike, complaining about not being able to use tabs on the code macro to include display multiple code syntaxes without arranging them vertically.

And while there are apps that do that, they're not for everyone: 

  • cost of the app for large instances
  • compatibility (well, lack thereof) with website building tools such as Scroll Viewport by K15t

What works for me is using the Expand macro for each programming language syntax and hiding the code macro inside.

  • saves the time and space
  • gives users the option to open only the syntax they need
  • compatibility - expand and code macros are stock Confluence

Confluence behavior:

Expand Code Macro.gif

Scroll Viewport Behavior:

Expand Code Macro Viewport.gif

Hope this saves somebody time, effort and space on the page :)

4 answers

1 vote
Matt Reiner _K15t_
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
December 20, 2023

@Kristian Klima, this is fantastic!

1 vote
Andy Gladstone
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 14, 2023

Great tip!

0 votes
Kristian Klima
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.
December 20, 2023

Thank you, @Matt Reiner _K15t_ 

0 votes
Kristian Klima
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.
December 14, 2023

Thank you!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events