The Tree of Widsdom

智慧の樹

PreNote

^do( PreNote, attribute, notename, [title] )^

Type: Macro

Purpose: Embeds an attribute value from notename

The PreNote macro inserts a block of code taken from the attribute of another note and wraps it in <pre></pre> tags. The 1st arg is the attribute (include the '$'). The 2nd arg is the name of the note. The title of the block will be attribute unless an optional 3rd arg is given.

Hover below to reveal BoxPress code

<p class="before-pre">^^if($3)^^$3^^else^^$1^^endIf^^</p><pre>^^value(eval(’$1($2).replace("<", "&amp;lt;")’))^^</pre>