Install the macro Code block with tabs for confluence
Add the macro Code block with tabs for confluence on a page
Press save
A simple boilerplate is created for you to get started.
Good to know
If you only have code in one tab the tabs wont be visibel