Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Missing Code macro tabs? Here's a little workaround

Kristian Klima
Community Champion
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_
Atlassian Partner
December 20, 2023

@Kristian Klima, this is fantastic!

1 vote
Andy Gladstone
Community Champion
December 14, 2023

Great tip!

0 votes
Kristian Klima
Community Champion
December 20, 2023

Thank you, @Matt Reiner _K15t_ 

0 votes
Kristian Klima
Community Champion
December 14, 2023

Thank you!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events