DocHere
^do( DocHere, body, [title] )^
Type: Macro
Purpose: Adds a hover-revealed code block
The DocHere macro inserts the 1st arg as a <pre>-block of code that is hidden until hover-over. Except for this effect, it is identical to PreHere. As with PreHere, you can add a title by including an optional 2nd arg.
Hover below to reveal BoxPress code
^if($2)^<p class="before-pre">$2</p>^else^<p class="before-pre">Hover below to reveal BoxPress code</p>^endIf^<pre ^if($BodyHideDocs)^class="hidey"^endIf^>^value(’$1’)^</pre>
DocHere sample
This is the markup that is rendered below
^do(DocHere, ‘Hey everybody! I’m some confusing-looking code that no one likes to look at. Hide me from new users to decrease anxiety so they can read the rest of the page.’)^
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.
Hover below to reveal BoxPress code
Hey everybody! I’m some confusing-looking code that no one likes to look at. Hide me from new users to decrease anxiety so they can read the rest of the page.
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.