PreHere
^do( PreHere, body, [title|t] )^
Type: Macro
Purpose: Adds a code block with optional ButtonTop
The PreHere macro inserts the 1st arg as a <pre>-block of code. You can add a title by including an optional 2nd arg. If you use t as your 2nd arg, the string “This is the markup that is rendered below” will be used as the ButtonTop title. Feel free to change this inside the macro for you own special common usage.
Hover below to reveal BoxPress code
^if($2)^<p class="before-pre">$2</p>^endIf^<pre>^value(’$1’.replace("(<p>|</p>)", ""))^</pre>
PreHere sample
This is the markup that is rendered below
^do(PreHere, ‘Default button (args: none): ^do(Button, "Bootstrap Downloads", "http://getbootstrap.com/getting-started/")^ More text to show embedding.’, t)^ ^do(PreHere, ‘Default button (args: none): ^do(Button, "Bootstrap Downloads", "http://getbootstrap.com/getting-started/")^ More text to show embedding.’, "This one has a different DivTop.")^
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
This is the markup that is rendered below
Default button (args: none): ^do(Button, "Bootstrap Downloads", "http://getbootstrap.com/getting-started/")^ More text to show embedding.
This one has a different ButtonTop title.
Default button (args: none): ^do(Button, "Bootstrap Downloads", "http://getbootstrap.com/getting-started/")^ More text to show embedding.'
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.