On Wed, Mar 6, 2019 at 6:22 AM Lassi Kortela <xxxxxx@lassi.io> wrote:
 
Then it's not a big step to add classes:

   <div class="proc def">
     <b class="name">make-array</b>
     <var class="arg">interval</var>
     <var class="arg">getter</var>
     [ <var class="opt arg">setter</var> ]
   </div> 

It's possible to use even simpler markup by relying on context to understand that arguments are arguments:

<div class="proc def">
  <span>make-array</span>
  <var>interval</var>
  <var>getter</var>
  <var class="opt">setter</var></div>

Bold text, parentheses, square brackets, and a "procedure: " prefix can be added by CSS, if desired.

It should be possible to make this really lightweight.