set-doc-string ( string document -- ) (original) (raw)

set-doc-string ( string document -- )
Factor handbook » UI framework » Building user interfaces » Pre-made UI gadgets » Editor gadgets » Documents

Prev: doc-string ( document -- str )
Next: clear-doc ( document -- )

Vocabulary
documents

Inputs

string a string
document a document

Outputs
None

Word description
Sets the contents of the document to a string, which may use either \n, \r\n or \r line separators.

Side effects
Modifies document

Definition

USING: documents.private ;

IN: documents

: set-doc-string ( string document -- )
entire-doc set-doc-range ;