Core Help Root: Objects: has_text: Methods


Methods

Accessors

.text()
Returns the text in the format it is stored in, either plaintext or the frob representation of CML.
.get_raw_text()
Returns the raw text to be edited. For plaintext, this is the text, while for CML, this will be the decompiled CML in it's raw form.
.lines()
Returns a number identifying how many lines of text there are. Note that with CML, this is not accurate for the formatted output but rather for the uncompiled CML text.

Mutators

.set_text(txt)
Accepts either a single line of text or a list of lines as input. If the text is set to not be plaintext, it will compile the text with the CML compiler.
.ins_line(txt, [loc])
Accepts a line of text and an optional location (given by line number) for where to put it. If the location is not specified, it defaults to adding the line of text at the end.
.del_text()
Clears the text.
.del_line(linestr)
Removes the first instance of the string (must be a complete line) given as the argument from the text.
.del_nline(nline)
Removes the line specified by the line number given as the argument from the text.
.ins_lines(lines, loc)
Inserts the list of strings at the specified location.}


Methods


the Cold Dark