Kaya 0.5.3 reference for HTMLDocument::addPreformatted

List of functions and data types in HTMLDocument

ElementTree addPreformatted(ElementTree parent, String initialtext=createString(0))

Arguments

Usage

Add a preformatted block to the end of the specified element. This is useful for displaying program code and other text where indentation may be significant or useful to preserve.

pre = addPreformatted(parent,"");
code = appendInlineElement(pre,"j = 0;
for i in [1..10] {
  j += i;
}");
kaya@kayalang.org | Last modified 29 November 2011 | Supported by Durham CompSoc | Powered by Kaya