| Did you know ... | Search Documentation: |
| editor<-wrap |
character,
breaking long-lines at the character level. If none is
used, text exceeding the left-margin is simply discarded. Finally,
word makes the editor break lines at the start of a word.
See also text_image->wrap.
editor->wrap
chooses between the two views on a text-file realised by class editor.
The default mode is intended for editing source code or other
traditional line-based text documents, generally using a fixed-width font
object. Using‘editor->wrap:
word’, the editor treats the file as a sequence of paragraphs
separated by newlines. The latter is the common view for most modern
GUIs for textareas.
In addition to wrapping, a number of commands are influenced by editor<-wrap
to use screen-lines rather then physical lines if
editor<-wrap
= word. This is only the case if the method is not passed a
numerical argument.
->end_of_line, editor->beginning_of_line->kill_line->cursor_up, editor->cursor_down->scroll_vertical
(handling the scroll_bar
object).