$snippet ( children -- ) (original) (raw)

$snippet ( children -- )
Factor handbook » Developer tools » Help system » Writing documentation » Element types » Span elements

Prev: $vocab-link ( element -- )
Next: $slot ( children -- )

Vocabulary
help.markup

Inputs

children markup elements

Outputs
None

Word description
Prints a key word or otherwise notable snippet of text, such as a type or a word input parameter. To document slot names, use $slot.

Definition

USING: help.stylesheet namespaces ;

IN: help.markup

: $snippet ( children -- )
[ snippet-style get print-element* ] ($span) ;