Forums

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

Can a user set defaults for a macro?

Mark_McGuire
Contributor
November 25, 2014

Some users want to always create a macro with particular defaults.  For example, with the code macro:

  • Code default "Python"
  • "Show line numbers"
  • "Emacs mode" 

Every time. 

Is there a trick to have these settings saved?  Perhaps a way to create a URL link that inserts the macro with those default values set?

Thanks!

2 answers

0 votes
Davin Studer
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 26, 2014

Just make a user macro to wrap the code macro and default the parameters in the user macro.

0 votes
Jonathan Simonoff
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 25, 2014

The only way I can think of to do that would be to make a user macro that reads parameters from the URL and then invoked the macro you want to use from that user macro.

Macros don't by default read parameters from the URL.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events