1HTMLDocument.addPreformatted(3Kkaayyaa)module refHeTrMeLnDcoecument.addPreformatted(3kaya)
2
3
4

NAME

6       HTMLDocument::addPreformatted - Add a preformatted block
7

SYNOPSIS

9       ElementTree   addPreformatted(   ElementTree  parent,  String  initialā€
10       text=createString(0) )
11

ARGUMENTS

13       parent The parent element
14
15       initialtext Optionally, initial text content for the element.
16

DESCRIPTION

18       Add a preformatted block to the end of the specified element.  This  is
19       useful for displaying program code and other text where indentation may
20       be significant or useful to preserve.
21
22
23    pre = addPreformatted(parent,"");
24    code = appendInlineElement(pre,"j = 0;
25    for i in [1..10] {
26      j += i;
27    }");
28

AUTHORS

30       Kaya  standard  library  by  Edwin  Brady,  Chris  Morris  and   others
31       (kaya@kayalang.org). For further information see http://kayalang.org/
32

LICENSE

34       The  Kaya  standard  library  is free software; you can redistribute it
35       and/or modify it under the terms  of  the  GNU  Lesser  General  Public
36       License  (version  2.1  or  any later version) as published by the Free
37       Software Foundation.
38
39
40
41Kaya                             December 20H1T0MLDocument.addPreformatted(3kaya)
Impressum