code - Factor Documentation (original) (raw)

code
Furnace framework » Furnace presentation layer » HTML components

Prev: choice
Next: farkup

Vocabulary
html.components

Class description
Code components render string value with the xmode.code2html syntax highlighting vocabulary. The mode slot names a value holding an XMode mode name.

Definition

IN: html.components

TUPLE: code mode ;

Methods

USING: accessors html.components html.forms kernel
xmode.code2html ;

M: code render*
[ ?split-lines ] [ drop ] [ mode>> value ] tri*
htmlize-lines ;