PreSource
^do( PreSource, attribute, [title] )^
Type: Macro
Purpose: Embeds an attribute value from $codeSource
The PreSource macro inserts a <pre>-block of code from the note you have already named in the $codeSource
key attribute. Only one argument is needed—i.e., the attribute (include the '$'). The title of the block will be attribute unless you add an optional 2nd arg.
Hover below to reveal BoxPress code
<p class="before-pre">^if($2)^$2^else^$1^endIf^</p><pre>^value(eval(’$1($codeSource).replace("<", "<")’))^</pre>