

Defining your own Flow ObjectsThis creates a block with a solid border and inserts the text "Warning!" in the start of its contents:
prototype Warning extends block
{
function layout(element)
{
this.style.borderStyle = solid;
this.append(new Text("Warning!"));
ProcessChildren(element, this);
}
}
style warning
{
fontSize: 14pt;
display: Warning
}