EndOfLineĬonvertEOLs(int eolMode) Convert all line endings in the document to one mode. EndStyled : position Retrieve the position of the last correctly styled character. Returns the index of the caret on the line. GetCurLine() : string, int Retrieve the text of the line containing the caret. GotoPos(position pos) Set caret to a position and ensure it is visible. GotoLine(int line) Set caret to start of a line and ensure it is visible. PositionFromPointClose(int x, int y) : position Find the position from a point within the window but return INVALID_POSITION if not close to text. PositionFromPoint(int x, int y) : position Find the position from a point within the window. W: Make white space characters invisible, always visible or visible outside indentation. ViewWS : int viewWS R: Are white space characters currently visible? Returns one of SCWS_* constants. MarkerDeleteHandle(int handle) Delete a marker. CanRedo() : bool Are there any redoable actions in the undo history? MarkerLineFromHandle(int handle) : int Retrieve the line number at which a particular marker is located. Returns the number of bytes in the buffer not including terminating NULs.
GetStyledText(textrange tr) : int Retrieve a buffer of cells. SetSavePoint() Remember the current position in the undo history as the position at which the document was saved. SelectAll() Select all the text in the document. W: Choose between collecting actions into the undo history and discarding them. UndoCollection : bool collectUndo R: Is undo history being collected? Redo() Redoes the next action on the undo history. GetStyleAt(position pos) : int Returns the style byte at the position. The anchor is the opposite end of the selection from the caret. W: Set the selection anchor to a position. Anchor : position posAnchor R: Returns the position of the opposite end of the selection to the caret. CurrentPos : position pos R: Returns the position of the caret. GetCharAt(position pos) : int Returns the character byte at the position. Length : int Returns the number of bytes in the document. ClearDocumentStyle() Set all style bytes to 0, remove all folding information. ClearAll() Delete all text in the document. InsertText(position pos, string text) Insert string at a position. AddStyledText(cells c) Add array of cells to document. SCI_OPTIONAL_START = 3000 SCI_LEXER_START = 4000 AddText(string text) Add text to the document at current position.
#Scite zoomed in windows#
They are accessed like 'editor.TabWidth = 20'īasics INVALID_POSITION = -1 SCI_START = 2000 Define start of Scintilla messages to be greater than all Windows edit (EM_*) messages as many EM_ messages can be used although that use is deprecated. Those greenish are properties of 'editor' and 'output' Įither 'R' (readable) or 'W' (writable) or both. They are called like 'editor:AddText("_")' Those bluish are methods of the objects 'editor' and 'output'.
#Scite zoomed in manual#
Spurious manual of SciTE Lua SciTE/Scintilla functions for Lua