Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Marcus Sternberg
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 21, 2011

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
Answer accepted
Joe Clark
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 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
Mark Hrynczak
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 27, 2011

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
TAGS
AUG Leaders

Atlassian Community Events