How can I save an edited default macro like codeblock for users?

Hi Community,

as a newbie I have two questions:

While editing a page when I start content with { I can jump into the makrobrowser, choose CODEBLOCK, insert the desired parameters and get it into the page.

Is there a way to

a) save those special edited codeblock e.g. under a new name to have it handy the next time I want to use it or do I have to go this way every time when I insert a similiar codeblock?

b) How do I get this saved & customized macro codeblock_userdefined into the dropdown-list when I type in a {

Thanks for your support,


2 answers

1 accepted

1 vote
Accepted answer
Joe Clark Atlassian Team Dec 28, 2011

Specifically with the {code} macro, there is functionality built in to the Confluence Admin Console that allows you to change the default behaviour of the macro for all users:

0 votes

You should be able to achieve this with User Macros.

See and related pages for more info on this.


Suggest an answer

Log in or Sign up to answer
Community showcase
Published Dec 18, 2018 in Confluence Cloud

Happy holidays from our team to yours!

Hi Community!  2018 was filled with changes for our team, both big and small, and we've taken a lot of time to both celebrate our wins and recognize areas of improvement. One thing that we're a...

456 views 3 18
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you