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:

Scroll Viewport Behavior:

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