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

1 vote
Joseph 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:

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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

355 views 20 10
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