3.0

2D Editor Library

The Lua 2D editor bindings enable 2D rich text editors to be created and manipulated within the
TI-Nspire™ product. 2D rich text editors are created using newRichText().
Script authors should be aware that rich text editors may embed annotations in proprietary markup language. Such markup could be embedded from the script by calling createMathBox() or createChemBox().
Users of the script application may also be able to copy and paste text with other markup information from other TI-Nspire™ applications like Notes. Some information about the markup language used inside the 2D editor is shown in Table 1.2 .

Table 1.2: 2D editor markup language

Description

Markup

Comment

Math Box

\0el {...}

Contains a 2D formula.

Evaluated
Math Box expressions

\0el {...} >\0el {...}

A pair of Math Boxes — formula and eval-
uated result.

Chem Box

\0chem {...}

Describes a chemical formula.

Other

\1 ...\

It is not recommended to utilize this type
in scripts as the used markup may change
in future releases. But it is recommended that scripts will gracefully handle this type of markup without Lua error.

Related Topics