macro-quote

Syntax

%macro-quote(arg1, arg2, ...)

Description

Outputs the arguments, separated by commas, but also replaces % with %, ( and ) with \( and \), and other things. If any argument is different then the output, then the output is also wrapped in double quotes.

Example

%macro-quote(a,this is a % in my code, this time in parentheses: (%))
Returns:
a,"this is a %% in my code","this time in parentheses: \(%%\)"