| Did you know ... | Search Documentation: |
| Get methods |
index. Interprets editor<-tab_stops.
When set, the editor<-caret
is moved as close as possible to the indicated column. See also editor->align.<-editor.
Improves the transparency between class editor
and class view.->dabbrev_expand.
The mode argument describes the stage of the expansion:
towards the start of the buffer and then to the end.
This method should return a list if candidates, each starting with target.
-size<-caret.
If regex is specified, regex->match
is executed from the start of the line and the column for the end of the
match is returned. If the regex does not match at all, 0 is returned.
This method is commonly used in combination with editor->align
for language dependent automatic indentation and alignment.
|event_id -> action=name|code->key_binding<-length, editor<-start
and editor<-view
are used by the related
scroll_bar object
to determine the visible part of the text. The method
editor->scroll_vertical
is called from the editor<-scroll_bar.<-caret
is returned.index. If index is omitted, editor<-caret
is used as default. The line-numbers returned refers to the physical
line number. In other words, the returned number is the number of LF
(Line-Feed) characters from the start of the buffer to index
plus one.
This numbering is conventionally used by programming languages.
-margin|view<-device
yields an instance of class view.
Otherwise return the editor itself. Used when the editor executes a code
object. See editor<-error_message
and editor<-modified_message.
See also visual<-master.
<-line,
moves caret to next line. Fails after reading the last line of text.
When reading the whole buffer in this fashion, don't forget to set editor->caret:
0 before starting. See also file<-read_line.<-x
is the start of the selection and
device<-y
is the end of the selection (not including: 50,51 represents a selection
holding one characters). The device<-x
is guaranteed to be smaller than device<-y.
The selection is determined by the editor<-mark
and editor<-caret.
<-caret.
See also editor<-mark
and
editor<-selection.<-mark.
See also editor<-caret
and editor<-selection.
Inherits description from: editor-selection_end
-size->tab_stops
->tab_stops-sizecharacter,
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).