Printing markup elements
Factor handbook > Developer tools > Help system > Writing documentation

Prev:Element types
Next:related-words ( seq -- )


When writing documentation, it is useful to be able to print markup elements for testing purposes. Markup elements which are strings or arrays of elements are printed in the obvious way. Markup elements of the form { $directive content... } are printed by executing the $directive word with the element content on the stack.
print-element ( element -- )

print-content ( element -- )