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,

Marcus

2 answers

1 accepted

Accepted Answer
1 vote
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 http://confluence.atlassian.com/display/DOC/Writing+User+Macros and related pages for more info on this.

Cheers,
Mark

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Oct 11, 2018 in Confluence

What are your project planning tips?

Hello Community,  Jessica here from the Confluence product marketing team! Today I wanted to get your takes on project planning –– what works, what doesn’t, how do you know if you’re doing it r...

333 views 2 4
Join discussion

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