![]() PasteConvertEndings - Enable/Disable convert-on-paste for line endings Error handling Positions are clipped into the document.Įditor: CopyText(string text) - Copy argument text to the clipboard.īool editor. Cut, copy and pasteĮditor: Cut() - Cut the selection to the clipboard.Įditor: Copy() - Copy the selection to the clipboard.Įditor: Paste() - Paste the contents of the clipboard into the document replacing the selection.īool editor: CanPaste() - Will a paste succeed?Įditor: CopyAllowLine() - Copy the selection, if selection empty copy the line with the caretĮditor: CopyRange(position start, position end) - Copy a range of text to the clipboard. Overtype - Set to overtype (true) or insert mode. Returns the length of the replacement text including any change caused by processing the \d patterns. Looks for \d where d is between 1 and 9 and replaces these with the strings matched in the last search operation which were surrounded by \( and \). Int editor: ReplaceTargetRE(string text) - Replace the target text with the argument text after \d processing. Returns the length of the replacement text. Int editor: ReplaceTarget(string text) - Replace the target text with the argument text. Returns length of range or -1 for failure in which case target is not moved. Int editor: SearchInTarget(string text) - Search for a counted string in the target and set the target to the found range. ![]() SearchFlags - Set the search flags used by SearchInTarget. TargetEnd - Sets the position that ends the target which is used for updating the document without affecting the scroll position.Įditor: TargetFromSelection() - Make the target range start and end be the same as the selection range start and end. TargetStart - Sets the position that starts the target which is used for updating the document without affecting the scroll position. Does not ensure the selection is visible. Int editor: SearchPrev(int flags, string text) - Find some text starting at the search anchor and moving backwards. Int editor: SearchNext(int flags, string text) - Find some text starting at the search anchor. SearchingĮditor: SearchAnchor() - Sets the current caret position to be the search anchor. Set to -1 and the string will be measured to the first nul. On error return 0.Įditor: SetLengthForEncode(int bytes) - Set the length of the utf8 argument for calling EncodedFromUTF8. Return the length of the result in bytes. String editor: EncodedFromUTF8(string utf8) - Translates a UTF8 string into the document encoding. String editor: TargetAsUTF8() - Returns the target converted to UTF8. If a lexer requires more than 32 lexical states, then this is used to expand the possible states. StyleBits - Divide each styling byte into lexical class bits (default: 5) and indicator bits (default: 3). ReadOnly - Set to read only or read write.Įditor: Allocate(int bytes) - Enlarge the document to a particular size of text bytes.Įditor: AddText(string text) - Add text to the document at current position.Įditor: AppendText(string text) - Append a string to the end of the document without changing the selection.Įditor: InsertText(position pos, string text) - Insert string at a position.Įditor: ClearAll() - Delete all text in the document.Įditor: DeleteRange(position pos, int deleteLength) - Delete a range of text in the document.Įditor: ClearDocumentStyle() - Set all style bytes to 0, remove all folding information. Returns the length of the line.Įditor: ReplaceSel(string text) - Replace the selected text with the argument text.īool editor. String editor: GetLine(int line) - Retrieve the contents of a line. Returns number of characters retrieved.Įditor: SetText(string text) - Replace the contents of the document with the argument text.Įditor: SetSavePoint() - Remember the current position in the undo history as the position at which the document was saved. String editor: GetText() - Retrieve all the text in the document. Properties are both readable and writeable by default and are otherwise marked "read-only" or "write-only". In Lua methods are called with the ':' operator and properties accessed with the '.' operator. All of the same featuresĪre available for the output pane by substituting 'output' for 'editor'. The API is presented here as it is called from Lua for the edit pane. SciTE Lua scripting of edit and output panes using Scintilla APIīoth the edit and output panes are Scintilla controls and can be scripted using Scintilla's API.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |