Module _m.textadept.mlines
Multiple line editing for the textadept module. There are several option variables used: MARK_MLINE: The integer mark used to identify an MLine marked line. MARK_MLINE_COLOR: The Scintilla color used for an MLine marked line.
Functions
| add () |
Adds an mline marker to the current line and stores the line number and column position of the caret in the mlines table. |
| add_multiple () |
Adds mline markers to all lines from the most recently added line to the current line. |
| clear () |
Clears all mline markers and the mlines table. |
| remove () |
Clears the mline marker at the current line. |
| remove_multiple () |
Clears the mline markers from the line whose marker was most recently removed (or the line where a marker was most recently added to) to the current line. |
| update () |
Applies changes made in the current line relative to the caret column position stored initially to all lines with mline markers in relation to their initial column positions. |
Tables
| mlines |
[Local table] Contains all MLine marked lines with the column index to edit with respect to for each specific line. |
Functions
- add ()
-
Adds an mline marker to the current line and stores the line number and column position of the caret in the mlines table.
- add_multiple ()
-
Adds mline markers to all lines from the most recently added line to the current line. The mlines table is updated as in add(), but all column positions are the same as the current column caret position.
- clear ()
-
Clears all mline markers and the mlines table.
- remove ()
-
Clears the mline marker at the current line.
- remove_multiple ()
-
Clears the mline markers from the line whose marker was most recently removed (or the line where a marker was most recently added to) to the current line.
- update ()
-
Applies changes made in the current line relative to the caret column position stored initially to all lines with mline markers in relation to their initial column positions.
Tables
- mlines
- [Local table] Contains all MLine marked lines with the column index to edit with respect to for each specific line.