INPUT /  OUTPUT /  LANGUAGE





editable field

Scalar field

Lets the user edit the text inside a tag.

Applies to...

Presentation container tags, such as box.

Sample usage

Behaviour

Takes true or false. null leaves it unspecified, so the default applies.

An editable tag works like a multi-line input box. Reading it generates its text, including newline characters between lines.

Notes

Because the text can contain several lines, <putLn notes> sends the program several lines of input, and the program can't tell where the text ends. Send the length first, so the program knows how much to read. Copy the text into a scalar first, so it can't change between the two. The program then reads exactly that many characters:

<copy:scalar null>
<button {Save} onClick=<copy notes>, <putLn {/save }, copy.#>, <put copy>>

See also