open-output-text-editor in Editors
(open-output-text-editor-> output-porttext-editorstart-positionspecial-filterport-name)
text-editor:text%object
start-position=: exact non-negative integer or'end'end
special-filter=: a procedure of one argument: a valuevalues
port-name=: valuetext-editorCreates an output port that delivers its content to
text-editor. The content is written totext-editorstarting at the positionstart-position, where'endindicates that output should start at the text editor's current end position.If
special-filteris provided, it is applied to any value written to the port withwrite-special, and the result is inserted in its place. If a special value is asnip%object, it is inserted into the editor. Otherwise, the special value isdisplayed into the editor.If line counting is enabled for the resulting output port, then the port will report the line, offset from the line's start, and position within the editor at which the port writes data.