A wxWidgets implementation of the Scintilla source code editing component.
As well as features found in standard text editing components, Scintilla includes features especially useful when editing and debugging source code. These include support for syntax styling, error indicators, code completion and call tips.
The selection margin can contain markers like those used in debuggers to indicate breakpoints and the current line. Styling choices are more open than with many editors, allowing the use of proportional fonts, bold and italics, multiple foreground and background colours and multiple fonts.
wxStyledTextCtrl is a 1 to 1 mapping of "raw" scintilla interface, whose
documentation can be found in the Scintilla website (http://www.scintilla.org/).
Please see wxStyledTextEvent for the documentation of all event types you can use
with wxStyledTextCtrl.
This class is derived, and can use functions, from:
wxWidgets docs: wxStyledTextCtrl
Summary
Functions
Add text to the document at current position.
Add text to the document at current position.
Enlarge the document to a particular size of text bytes.
Append a string to the end of the document without changing the selection.
Append a string to the end of the document without changing the selection.
Is there an auto-completion list visible?
Remove the auto-completion list from the screen.
User has selected an item so remove the list and insert the selection.
Retrieve whether or not autocompletion is hidden automatically when nothing matches.
Retrieve whether auto-completion cancelled by backspacing before start.
Retrieve whether a single item auto-completion list automatically choose the item.
Get currently selected item position in the auto-completion list.
Retrieve whether or not autocompletion deletes any word characters after the inserted text upon completion.
Retrieve state of ignore case flag.
Set the maximum height, in rows, of auto-completion and user lists.
Get the maximum width, in characters, of auto-completion and user lists.
Retrieve the auto-completion list separator character.
Retrieve the auto-completion list type-separator character.
Retrieve the position of the caret when the auto-completion list was displayed.
Select the item in the auto-completion list that starts with a string.
Set whether or not autocompletion is hidden automatically when nothing matches.
Should the auto-completion list be cancelled if the user backspaces to a position before where the box was created.
Should a single item auto-completion list automatically choose the item.
Set whether or not autocompletion deletes any word characters after the inserted text upon completion.
Define a set of characters that when typed will cause the autocompletion to choose the selected item.
Set whether case is significant when performing auto-completion searches.
Set the maximum height, in rows, of auto-completion and user lists.
Set the maximum width, in characters, of auto-completion and user lists.
Change the separator character in the string setting up an auto-completion list.
Change the type-separator character in the string setting up an auto-completion list.
Display a auto-completion list.
Define a set of character that when typed cancel the auto-completion list.
Dedent the selected lines.
Start a sequence of actions that is undone and redone as a unit.
Highlight the character at a position indicating there is no matching brace.
Highlight the characters at two positions.
Find the position of a matching brace or wxSTC_INVALID_POSITION if no match.
Is there an active call tip?
Remove the call tip from the screen.
Retrieve the position where the caret was before displaying the call tip.
Set the background colour for the call tip.
Set the foreground colour for the call tip.
Set the foreground colour for the highlighted part of the call tip.
Highlight a segment of the definition.
Show a call tip containing a definition near position pos.
Enable use of wxSTC_STYLE_CALLTIP and set call tip tab size in pixels.
Cancel any modes such as call tip or auto-completion list display.
Will a paste succeed?
Are there any redoable actions in the undo history?
Are there any undoable actions in the undo history?
Move caret left one character.
Move caret left one character extending selection to new caret position.
Move caret left one character, extending rectangular selection to new caret position.
Move caret right one character.
Move caret right one character extending selection to new caret position.
Move caret right one character, extending rectangular selection to new caret position.
Set the last x chosen value to be the caret x position.
Clear the selection.
Delete all text in the document.
Set all style bytes to 0, remove all folding information.
Clear all the registered images.
When key+modifier combination keyDefinition is pressed perform sciCommand.
When key+modifier combination keyDefinition is pressed do nothing.
Drop all key mappings.
Perform one of the operations defined by the wxSTCCMD* constants.
Colourise a segment of the document using the current lexing language.
Convert all line endings in the document to one mode.
Copy the selection to the clipboard.
Copy a range of text to the clipboard.
Copy argument text to the clipboard.
Create the UI elements for a STC that was created with the default ctor.
Cut the selection to the clipboard.
Delete the selection or if no selection, the character before the caret.
Delete the selection or if no selection, the character before the caret.
Delete back from the current position to the start of the line.
Delete forwards from the current position to the end of the line.
Delete the word to the left of the caret.
Delete the word to the right of the caret.
Destroys the object
Find the document line of a display line taking hidden lines into account.
Move caret to last position in document.
Move caret to last position in document extending selection to new caret position.
Move caret to first position in document.
Move caret to first position in document extending selection to new caret position.
Allow for simulating a DnD DragOver.
Allow for simulating a DnD DropText.
Switch from insert to overtype mode or the reverse.
Delete the undo history.
End a sequence of actions that is undone and redone as a unit.
Ensure the caret is visible.
Ensure a particular line is visible by expanding any header line hiding it.
Ensure a particular line is visible by expanding any header line hiding it.
Find the position of a column on a line taking into account tabs and multi-byte characters.
Find some text in the document. @param minPos The position (starting from zero) in the document at which to begin the search @param maxPos The last position (starting from zero) in the document to which the search will be restricted. @param text The text to search for. @param flags (Optional) The search flags. This should be a bit list containing one or more of the @link wxStyledTextCtrl::wxSTC_FIND_WHOLEWORD wxSTC_FIND_* @endlink constants.
On Windows, will draw the document into a display context such as a printer.
Insert a Form Feed character.
Returns the position of the opposite end of the selection to the caret.
Does a backspace pressed when caret is within indentation unindent?
Is drawing done first into a buffer or direct to the screen?
Get the foreground colour of the caret.
Get the background alpha of the caret line.
Get the colour of the background of the line containing the caret.
Is the background of the line containing the caret in a different colour?
Get the time in milliseconds that the caret is on and off.
Can the caret preferred x position only be changed by explicit movement commands?
Returns the width of the insert mode caret.
Returns the character byte at the position.
Get the code page used to interpret the bytes of the document as characters.
Retrieve the column number of a position, taking tab width into account.
Get the way control characters are displayed.
Retrieve the text of the line containing the caret.
Retrieve the text of the line containing the caret.
Returns the line number of the line with the caret.
Returns the position of the caret.
Retrieve the colour used in edge indication.
Retrieve the column number which text should be kept within.
Retrieve the edge highlight mode.
Retrieve whether the maximum scroll position has the last line at the bottom of the view.
Retrieve the position of the last correctly styled character.
Retrieve the current end of line mode - one of wxSTC_EOL_CRLF, wxSTC_EOL_CR, or wxSTC_EOL_LF.
Retrieve the display line at the top of the display.
Is a header line expanded?
Retrieve the fold level of a line.
Find the parent line of a child line.
Get the highlighted indentation guide column.
Retrieve indentation size.
Are the indentation guides visible?
Find the last child line of a header line.
Can be used to prevent the EVT_CHAR handler from adding the char.
Retrieve the degree of caching of layout information.
Returns the number of bytes in the document.
Retrieve the lexing language of the document.
Retrieve the contents of a line.
Returns the number of lines in the document.
Get the position after the last visible characters on a line.
Retrieve the number of columns that a line is indented.
Retrieve the position before the first non indentation character on a line.
Retrieve the contents of a line.
Retrieve the extra styling information for a line.
Is a line visible?
Returns the size in pixels of the left margin.
Retrieve the marker mask of a margin.
Returns the size in pixels of the right margin.
Retrieve the mouse click sensitivity of a margin.
Retrieve the type of a margin.
Retrieve the width of a margin in pixels.
Retrieve the last line number that has line state.
Get which document modification events are sent to the container.
Is the document different from when it was last saved?
Get whether mouse gets captured.
Retrieve the time the mouse must sit still to generate a mouse dwell event.
Returns true if overtype mode is active otherwise false is returned.
Get convert-on-paste setting.
Returns the print colour mode.
Returns the print magnification.
Is printing line wrapped?
Retrieve a "property" value previously set with SetProperty.
In read-only mode?
Retrieve the document width assumed for scrolling.
Get the search flags used by SearchInTarget.
Get the alpha of the selection.
Retrieve the selected text.
Retrieve the selected text.
Gets the current selection span.
Returns the position at the end of the selection.
Get the mode of the current selection.
Returns the position at the start of the selection.
Get cursor type.
Get internal focus flag.
Get error status.
Returns the style byte at the position.
Retrieve number of bits in style bytes used to hold the lexical state.
Retrieve the number of bits the current lexer needs for styling.
Does a tab pressed when caret is within indentation indent?
Retrieve the visible size of a tab.
Get the position that ends the target.
Get the position that starts the target.
Retrieve all the text in the document.
Retrieve the number of characters in the document.
Retrieve a range of text.
Retrieve a range of text.
Retrieve all the text in the document.
Is drawing done in two phases with backgrounds drawn before foregrounds?
Is undo history being collected?
Returns the current UseAntiAliasing setting.
Is the horizontal scroll bar visible?
Retrieve whether tabs will be used in indentation.
Is the vertical scroll bar visible?
Are the end of line characters visible?
Are white space characters currently visible? Returns one of wxSTCWS* constants.
Retrieve whether text is word wrapped.
Retrieve the start indent for wrapped lines.
Retrieve the display mode of visual flags for wrapped lines.
Retrieve the location of visual flags for wrapped lines.
Get the xOffset (ie, horizontal scroll position).
Retrieve the zoom level.
Set caret to start of a line and ensure it is visible.
Set caret to a position and ensure it is visible.
Make a range of lines invisible.
Draw the selection in normal style or with selection highlighted.
Move caret to first position on line.
Move caret to first position on display line.
Move caret to first position on display line extending selection to new caret position.
Move caret to first position on line extending selection to new caret position.
Move caret to first position on line, extending rectangular selection to new caret position.
Like HomeExtend but when word-wrap is enabled extends first to start of display line HomeDisplayExtend, then to start of document line HomeExtend.
Retrieve the foreground colour of an indicator.
Retrieve the style of an indicator.
Set the foreground colour of an indicator.
Set an indicator to plain, squiggle or TT.
Insert string at a position.
Insert string at a position.
Copy the line containing the caret.
Cut the line containing the caret.
Delete the line containing the caret.
Move caret down one line.
Move caret down one line extending selection to new caret position.
Move caret down one line, extending rectangular selection to new caret position.
Duplicate the current line.
Move caret to last position on line.
Move caret to last position on display line.
Move caret to last position on display line extending selection to new caret position.
Move caret to last position on line extending selection to new caret position.
Move caret to last position on line, extending rectangular selection to new caret position.
Like LineEnd but when word-wrap is enabled goes first to end of display line LineEndDisplay, then to start of document line LineEnd.
Like LineEndExtend but when word-wrap is enabled extends first to end of display line LineEndDisplayExtend, then to start of document line LineEndExtend.
Retrieve the line containing a position.
How many characters are on a line, including end of line characters?
Scroll horizontally and vertically.
Scroll the document down, keeping the caret visible.
Scroll the document up, keeping the caret visible.
Join the lines in the target.
Retrieves the number of lines completely visible.
Split the lines in the target into lines that are less wide than pixelWidth where possible.
Switch the current line with the previous.
Move caret up one line.
Move caret up one line extending selection to new caret position.
Move caret up one line, extending rectangular selection to new caret position.
Load the contents of filename into the editor.
Transform the selection to lower case.
Add a marker to a line, returning an ID which can be used to find or delete the marker.
Add a set of markers to a line.
Set the symbol used for a particular marker number, and optionally the fore and background colours.
Define a marker with a wxBitmap.
Delete a marker from a line.
Delete all markers with a particular number from all lines.
Delete a marker.
Get a bit mask of all the markers set on a line.
Retrieve the line number at which a particular marker is located.
Find the next line at or after lineStart that includes a marker in mask.
Find the previous line before lineStart that includes a marker in mask.
Set the alpha used for a marker that is drawn in the text area, not the margin.
Set the background colour used for a particular marker number.
Set the foreground colour used for a particular marker number.
Move the caret inside current view if it's not there already.
Default ctor.
Ctor.
Insert a new line, may use a CRLF, CR or LF depending on EOL mode.
Move caret one page down.
Move caret one page down extending selection to new caret position.
Move caret one page down, extending rectangular selection to new caret position.
Move caret one page up.
Move caret one page up extending selection to new caret position.
Move caret one page up, extending rectangular selection to new caret position.
Extend selection down one paragraph (delimited by empty lines).
Move caret up one paragraph (delimited by empty lines).
Extend selection up one paragraph (delimited by empty lines).
Paste the contents of the clipboard into the document replacing the selection.
Retrieve the point in the window where a position is displayed.
Given a valid document position, return the next position taking code page into account.
Given a valid document position, return the previous position taking code page into account.
Retrieve the position at the start of a line.
Find the position from a point within the window.
Find the position from a point within the window but return wxSTC_INVALID_POSITION if not close to text.
Redoes the next action on the undo history.
Register an image for use in autocompletion lists.
Replace the selected text with the argument text.
Replace the target text with the argument text.
Write the contents of the editor to filename.
Scroll enough to make the given column visible.
Scroll enough to make the given line visible.
Sets the current caret position to be the search anchor.
Search for a counted string in the target and set the target to the found range.
Find some text starting at the search anchor.
Find some text starting at the search anchor and moving backwards.
Select all the text in the document.
Duplicate the selection.
Is the selection rectangular? The alternative is the more common stream selection.
Set the selection anchor to a position.
Sets whether a backspace pressed when caret is within indentation unindents.
If drawing is buffered then each line of text is drawn into a bitmap buffer before drawing it to the screen to avoid flicker.
Set the foreground colour of the caret.
Set background alpha of the caret line.
Set the colour of the background of the line containing the caret.
Display the background of the line containing the caret in a different colour.
Get the time in milliseconds that the caret is on and off.
Stop the caret preferred x position changing when the user types.
Set the width of the insert mode caret.
Reset the set of characters for whitespace and word characters to the defaults.
Set the code page used to interpret the bytes of the document as characters.
Change the way control characters are displayed: If symbol is *< 32, keep the drawn way, else, use the given character.
Sets the position of the caret.
Change the colour used in edge indication.
Set the column number of the edge.
The edge may be displayed by a line (wxSTC_EDGE_LINE/wxSTC_EDGE_MULTILINE) or by highlighting text that goes beyond it (wxSTC_EDGE_BACKGROUND) or not displayed at all (wxSTC_EDGE_NONE).
Set the current end of line mode.
Show the children of a header line.
Set some style options for folding.
Set the fold level of a line.
Set one of the colours used as a chequerboard pattern in the fold margin.
Set the other colour used as a chequerboard pattern in the fold margin.
Set the highlighted indentation guide column.
Set a back colour for active hotspots.
Set a fore colour for active hotspots.
Enable / Disable underlining active hotspots.
Limit hotspots to single line so hotspots on two lines don't merge.
Set the horizontal scrollbar to use instead of the one that's built-in.
Set the number of spaces used for one level of indentation.
Show or hide indentation guides.
Set up the key words used by the lexer.
Returns the line number of the line with the caret.
Sets the degree of caching of layout information.
Set the lexing language of the document.
Set the lexing language of the document based on string name.
Change the indentation of a line to a number of columns.
Used to hold extra styling information for each line.
Sets the size in pixels of the left margin.
Set a mask that determines which markers are displayed in a margin.
Sets the size in pixels of the right margin.
Make a margin sensitive or insensitive to mouse clicks.
Set the left and right margin in the edit area, measured in pixels.
Set a margin to be either numeric or symbolic.
Set the width of a margin to a width expressed in pixels.
Set which document modification events are sent to the container.
Set whether the mouse is captured when its button is pressed.
Sets the time the mouse must sit still to generate a mouse dwell event.
Enable/Disable convert-on-paste for line endings.
Modify colours when printing for clearer printed text.
Sets the print magnification added to the point size of each style for printing.
Set up a value that may be used by a lexer for some optional feature.
Set to read only or read write.
Remember the current position in the undo history as the position at which the document was saved.
Sets the document width assumed for scrolling.
Set the search flags used by SearchInTarget.
Set the alpha of the selection.
Set the background colour of the main and additional selections and whether to use this setting.
Selects the text starting at the first position up to (but not including) the character at the last position.
Sets the position that ends the selection - this becomes the caret.
Set the selection mode to stream (wxSTC_SEL_STREAM) or rectangular (wxSTC_SEL_RECTANGLE/wxSTC_SEL_THIN) or by lines (wxSTC_SEL_LINES).
Sets the position that starts the selection - this becomes the anchor.
Set the foreground colour of the main and additional selections and whether to use this setting.
Sets the cursor to one of the wxSTC_CURSOR* values.
Change internal focus flag.
Change error status - 0 = OK.
Set the styles for a segment of the document.
Change style from current styling position for length characters to a style and move the current styling position to after this newly styled segment.
Sets whether a tab pressed when caret is within indentation indents.
Change the visible size of a tab to be a multiple of the width of a space character.
Sets the position that ends the target which is used for updating the document without affecting the scroll position.
Sets the position that starts the target which is used for updating the document without affecting the scroll position.
Replace the contents of the document with the argument text.
Replace the contents of the document with the argument text.
In twoPhaseDraw mode, drawing is performed in two phases, first the background and then the foreground.
Choose between collecting actions into the undo history and discarding them.
Show or hide the horizontal scroll bar.
Indentation will only use space characters if useTabs is false, otherwise it will use a combination of tabs and spaces.
Show or hide the vertical scroll bar.
Make the end of line characters visible or invisible.
Make white space characters invisible, always visible or visible outside indentation.
Set the way the display area is determined when a particular line is to be moved to by Find, FindNext, GotoLine, etc.
Set the vertical scrollbar to use instead of the one that's built-in.
Set the background colour of all whitespace and whether to use this setting.
Set the set of characters making up whitespace for when moving or selecting by word.
Set the foreground colour of all whitespace and whether to use this setting.
Set the set of characters making up words for when moving or selecting by word.
Sets whether text is word wrapped.
Set the start indent for wrapped lines.
Set the display mode of visual flags for wrapped lines.
Set the location of visual flags for wrapped lines.
Set the way the caret is kept visible when going sideways.
Set the way the line the caret is on is kept visible.
Set the zoom level.
Make a range of lines visible.
Start notifying the container of all key presses and commands.
Set the current styling position to start.
Stop notifying the container of all key presses and commands.
Move caret to bottom of page, or one page down if already at bottom of page.
Move caret to bottom of page, or one page down if already at bottom of page, extending selection to new caret position.
Move caret to top of page, or one page up if already at top of page.
Move caret to top of page, or one page up if already at top of page, extending selection to new caret position.
Clear all the styles and make equivalent to the global default style.
Reset the default style to its state at startup.
Set the background colour of a style.
Set a style to be bold or not.
Set a style to be mixed case, or to force upper or lower case.
Set the character set of the font in a style.
Set a style to have its end of line filled or not.
Set the font of a style.
Set style size, face, bold, italic, and underline attributes from a wxFont's
attributes.
Set all font style attributes at once.
Set the font encoding to be used by a style.
Set the foreground colour of a style.
Set a style to be a hotspot or not.
Set a style to be italic or not.
Set the size of characters of a style.
Extract style settings from a spec-string which is composed of one or more of the following comma separated elements
Set a style to be underlined or not.
Set a style to be visible or not.
If selection is empty or all on one line replace the selection with a tab character.
Make the target range start and end be the same as the selection range start and end.
Retrieve the height of a particular line of text in pixels.
Measure the pixel width of some text in a particular style.
Switch between sticky and non-sticky: meant to be bound to a key.
Switch a header line between expanded and contracted.
Undo one action in the undo history.
Transform the selection to upper case.
Set whether a pop up menu is displayed automatically when the user presses the wrong mouse button on certain areas.
Display a list of strings and send notification when user chooses one.
Move caret to before first visible character on line.
Like VCHome but extending selection to new caret position.
Move caret to before first visible character on line.
Like VCHome but when word-wrap is enabled goes first to start of display line VCHomeDisplay, then behaves like VCHome.
Like VCHomeExtend but when word-wrap is enabled extends first to start of display line VCHomeDisplayExtend, then behaves like VCHomeExtend.
Find the display line of a document line taking hidden lines into account.
Get position of end of word.
Move caret left one word.
Move caret left one word, position cursor at end of word.
Move caret left one word, position cursor at end of word, extending selection to new caret position.
Move caret left one word extending selection to new caret position.
Move to the previous change in capitalisation.
Move to the previous change in capitalisation extending selection to new caret position.
Move to the change next in capitalisation.
Move to the next change in capitalisation extending selection to new caret position.
Move caret right one word.
Move caret right one word, position cursor at end of word.
Move caret right one word, position cursor at end of word, extending selection to new caret position.
Move caret right one word extending selection to new caret position.
Get position of start of word.
The number of display lines needed to wrap a document line.
Magnify the displayed text by increasing the sizes by 1 point.
Make the displayed text smaller by decreasing the sizes by 1 point.
Types
-type wxStyledTextCtrl() :: wx:wx_object().
Functions
addText(This :: wxStyledTextCtrl(), Text :: unicode:chardata()) -> ok
Add text to the document at current position.
-spec addTextRaw(This, Text) -> ok when This :: wxStyledTextCtrl(), Text :: binary().
-spec addTextRaw(This, Text, [Option]) -> ok when This :: wxStyledTextCtrl(), Text :: binary(), Option :: {length, integer()}.
Add text to the document at current position.
allocate(This :: wxStyledTextCtrl(), Bytes :: integer()) -> ok
Enlarge the document to a particular size of text bytes.
appendText(This :: wxStyledTextCtrl(), Text :: unicode:chardata()) -> ok
Append a string to the end of the document without changing the selection.
-spec appendTextRaw(This, Text) -> ok when This :: wxStyledTextCtrl(), Text :: binary().
-spec appendTextRaw(This, Text, [Option]) -> ok when This :: wxStyledTextCtrl(), Text :: binary(), Option :: {length, integer()}.
Append a string to the end of the document without changing the selection.
autoCompActive(This :: wxStyledTextCtrl()) -> boolean()
Is there an auto-completion list visible?
autoCompCancel(This :: wxStyledTextCtrl()) -> ok
Remove the auto-completion list from the screen.
autoCompComplete(This :: wxStyledTextCtrl()) -> ok
User has selected an item so remove the list and insert the selection.
autoCompGetAutoHide(This :: wxStyledTextCtrl()) -> boolean()
Retrieve whether or not autocompletion is hidden automatically when nothing matches.
autoCompGetCancelAtStart(This :: wxStyledTextCtrl()) -> boolean()
Retrieve whether auto-completion cancelled by backspacing before start.
autoCompGetChooseSingle(This :: wxStyledTextCtrl()) -> boolean()
Retrieve whether a single item auto-completion list automatically choose the item.
autoCompGetCurrent(This :: wxStyledTextCtrl()) -> integer()
Get currently selected item position in the auto-completion list.
autoCompGetDropRestOfWord(This :: wxStyledTextCtrl()) -> boolean()
Retrieve whether or not autocompletion deletes any word characters after the inserted text upon completion.
autoCompGetIgnoreCase(This :: wxStyledTextCtrl()) -> boolean()
Retrieve state of ignore case flag.
autoCompGetMaxHeight(This :: wxStyledTextCtrl()) -> integer()
Set the maximum height, in rows, of auto-completion and user lists.
autoCompGetMaxWidth(This :: wxStyledTextCtrl()) -> integer()
Get the maximum width, in characters, of auto-completion and user lists.
autoCompGetSeparator(This :: wxStyledTextCtrl()) -> integer()
Retrieve the auto-completion list separator character.
autoCompGetTypeSeparator(This :: wxStyledTextCtrl()) -> integer()
Retrieve the auto-completion list type-separator character.
autoCompPosStart(This :: wxStyledTextCtrl()) -> integer()
Retrieve the position of the caret when the auto-completion list was displayed.
autoCompSelect(This :: wxStyledTextCtrl(), Select :: unicode:chardata()) -> ok
Select the item in the auto-completion list that starts with a string.
autoCompSetAutoHide(This :: wxStyledTextCtrl(), AutoHide :: boolean()) -> ok
Set whether or not autocompletion is hidden automatically when nothing matches.
autoCompSetCancelAtStart(This :: wxStyledTextCtrl(), Cancel :: boolean()) -> ok
Should the auto-completion list be cancelled if the user backspaces to a position before where the box was created.
Should a single item auto-completion list automatically choose the item.
Set whether or not autocompletion deletes any word characters after the inserted text upon completion.
Define a set of characters that when typed will cause the autocompletion to choose the selected item.
autoCompSetIgnoreCase(This :: wxStyledTextCtrl(), IgnoreCase :: boolean()) -> ok
Set whether case is significant when performing auto-completion searches.
autoCompSetMaxHeight(This :: wxStyledTextCtrl(), RowCount :: integer()) -> ok
Set the maximum height, in rows, of auto-completion and user lists.
The default is 5 rows.
Set the maximum width, in characters, of auto-completion and user lists.
Set to 0 to autosize to fit longest item, which is the default.
Change the separator character in the string setting up an auto-completion list.
Default is space but can be changed if items contain space.
Change the type-separator character in the string setting up an auto-completion list.
Default is '?' but can be changed if items contain '?'.
Display a auto-completion list.
The lengthEntered parameter indicates how many characters before the caret should be used to provide context.
Define a set of character that when typed cancel the auto-completion list.
backTab(This :: wxStyledTextCtrl()) -> ok
Dedent the selected lines.
beginUndoAction(This :: wxStyledTextCtrl()) -> ok
Start a sequence of actions that is undone and redone as a unit.
May be nested.
braceBadLight(This :: wxStyledTextCtrl(), Pos :: integer()) -> ok
Highlight the character at a position indicating there is no matching brace.
Highlight the characters at two positions.
braceMatch(This :: wxStyledTextCtrl(), Pos :: integer()) -> integer()
Find the position of a matching brace or wxSTC_INVALID_POSITION if no match.
callTipActive(This :: wxStyledTextCtrl()) -> boolean()
Is there an active call tip?
callTipCancel(This :: wxStyledTextCtrl()) -> ok
Remove the call tip from the screen.
callTipPosAtStart(This :: wxStyledTextCtrl()) -> integer()
Retrieve the position where the caret was before displaying the call tip.
Since: 3.1.0
callTipSetBackground(This :: wxStyledTextCtrl(), Back :: wx:wx_colour()) -> ok
Set the background colour for the call tip.
callTipSetForeground(This :: wxStyledTextCtrl(), Fore :: wx:wx_colour()) -> ok
Set the foreground colour for the call tip.
Set the foreground colour for the highlighted part of the call tip.
Highlight a segment of the definition.
Show a call tip containing a definition near position pos.
callTipUseStyle(This :: wxStyledTextCtrl(), TabSize :: integer()) -> ok
Enable use of wxSTC_STYLE_CALLTIP and set call tip tab size in pixels.
cancel(This :: wxStyledTextCtrl()) -> ok
Cancel any modes such as call tip or auto-completion list display.
canPaste(This :: wxStyledTextCtrl()) -> boolean()
Will a paste succeed?
canRedo(This :: wxStyledTextCtrl()) -> boolean()
Are there any redoable actions in the undo history?
canUndo(This :: wxStyledTextCtrl()) -> boolean()
Are there any undoable actions in the undo history?
charLeft(This :: wxStyledTextCtrl()) -> ok
Move caret left one character.
charLeftExtend(This :: wxStyledTextCtrl()) -> ok
Move caret left one character extending selection to new caret position.
charLeftRectExtend(This :: wxStyledTextCtrl()) -> ok
Move caret left one character, extending rectangular selection to new caret position.
charRight(This :: wxStyledTextCtrl()) -> ok
Move caret right one character.
charRightExtend(This :: wxStyledTextCtrl()) -> ok
Move caret right one character extending selection to new caret position.
charRightRectExtend(This :: wxStyledTextCtrl()) -> ok
Move caret right one character, extending rectangular selection to new caret position.
chooseCaretX(This :: wxStyledTextCtrl()) -> ok
Set the last x chosen value to be the caret x position.
clear(This :: wxStyledTextCtrl()) -> ok
Clear the selection.
clearAll(This :: wxStyledTextCtrl()) -> ok
Delete all text in the document.
clearDocumentStyle(This :: wxStyledTextCtrl()) -> ok
Set all style bytes to 0, remove all folding information.
clearRegisteredImages(This :: wxStyledTextCtrl()) -> ok
Clear all the registered images.
When key+modifier combination keyDefinition is pressed perform sciCommand.
The second argument should be a bit list containing one or more of the ?wxSTC_KEYMOD_* constants and the third argument should be one of the ?wxSTC_CMD_* constants.
When key+modifier combination keyDefinition is pressed do nothing.
The second argument should be a bit list containing one or more of the ?wxSTC_KEYMOD_* constants.
cmdKeyClearAll(This :: wxStyledTextCtrl()) -> ok
Drop all key mappings.
cmdKeyExecute(This :: wxStyledTextCtrl(), Cmd :: integer()) -> ok
Perform one of the operations defined by the wxSTCCMD* constants.
Colourise a segment of the document using the current lexing language.
convertEOLs(This :: wxStyledTextCtrl(), EolMode :: integer()) -> ok
Convert all line endings in the document to one mode.
copy(This :: wxStyledTextCtrl()) -> ok
Copy the selection to the clipboard.
Copy a range of text to the clipboard.
Positions are clipped into the document.
Copy argument text to the clipboard.
-spec create(This, Parent) -> boolean() when This :: wxStyledTextCtrl(), Parent :: wxWindow:wxWindow().
-spec create(This, Parent, [Option]) -> boolean() when This :: wxStyledTextCtrl(), Parent :: wxWindow:wxWindow(), Option :: {id, integer()} | {pos, {X :: integer(), Y :: integer()}} | {size, {W :: integer(), H :: integer()}} | {style, integer()}.
Create the UI elements for a STC that was created with the default ctor.
(For 2-phase create.)
cut(This :: wxStyledTextCtrl()) -> ok
Cut the selection to the clipboard.
deleteBack(This :: wxStyledTextCtrl()) -> ok
Delete the selection or if no selection, the character before the caret.
deleteBackNotLine(This :: wxStyledTextCtrl()) -> ok
Delete the selection or if no selection, the character before the caret.
Will not delete the character before at the start of a line.
delLineLeft(This :: wxStyledTextCtrl()) -> ok
Delete back from the current position to the start of the line.
delLineRight(This :: wxStyledTextCtrl()) -> ok
Delete forwards from the current position to the end of the line.
delWordLeft(This :: wxStyledTextCtrl()) -> ok
Delete the word to the left of the caret.
delWordRight(This :: wxStyledTextCtrl()) -> ok
Delete the word to the right of the caret.
destroy(This :: wxStyledTextCtrl()) -> ok
Destroys the object
docLineFromVisible(This, DisplayLine) -> integer()
Find the document line of a display line taking hidden lines into account.
documentEnd(This :: wxStyledTextCtrl()) -> ok
Move caret to last position in document.
documentEndExtend(This :: wxStyledTextCtrl()) -> ok
Move caret to last position in document extending selection to new caret position.
documentStart(This :: wxStyledTextCtrl()) -> ok
Move caret to first position in document.
documentStartExtend(This :: wxStyledTextCtrl()) -> ok
Move caret to first position in document extending selection to new caret position.
doDragOver(This, X, Y, DefaultRes) -> wx:wx_enum()
Allow for simulating a DnD DragOver.
doDropText(This, X, Y, Data) -> boolean()
Allow for simulating a DnD DropText.
editToggleOvertype(This :: wxStyledTextCtrl()) -> ok
Switch from insert to overtype mode or the reverse.
emptyUndoBuffer(This :: wxStyledTextCtrl()) -> ok
Delete the undo history.
endUndoAction(This :: wxStyledTextCtrl()) -> ok
End a sequence of actions that is undone and redone as a unit.
ensureCaretVisible(This :: wxStyledTextCtrl()) -> ok
Ensure the caret is visible.
ensureVisible(This :: wxStyledTextCtrl(), Line :: integer()) -> ok
Ensure a particular line is visible by expanding any header line hiding it.
ensureVisibleEnforcePolicy(This :: wxStyledTextCtrl(), Line :: integer()) -> ok
Ensure a particular line is visible by expanding any header line hiding it.
Use the currently set visibility policy to determine which range to display.
findColumn(This, Line, Column) -> integer()
Find the position of a column on a line taking into account tabs and multi-byte characters.
If beyond end of line, return line end position.
-spec findText(This, MinPos, MaxPos, Text) -> integer() when This :: wxStyledTextCtrl(), MinPos :: integer(), MaxPos :: integer(), Text :: unicode:chardata().
-spec findText(This, MinPos, MaxPos, Text, [Option]) -> integer() when This :: wxStyledTextCtrl(), MinPos :: integer(), MaxPos :: integer(), Text :: unicode:chardata(), Option :: {flags, integer()}.
Find some text in the document. @param minPos The position (starting from zero) in the document at which to begin the search @param maxPos The last position (starting from zero) in the document to which the search will be restricted. @param text The text to search for. @param flags (Optional) The search flags. This should be a bit list containing one or more of the @link wxStyledTextCtrl::wxSTC_FIND_WHOLEWORD wxSTC_FIND_* @endlink constants.
Return: The position (starting from zero) in the document at which the text was found or wxSTC_INVALID_POSITION if the search fails.
Remark: A backwards search can be performed by setting minPos to be greater than maxPos.
formatRange(This, DoDraw, StartPos, EndPos, Draw, Target, RenderRect, PageRect) -> integer()
Types
This = wxStyledTextCtrl()
DoDraw = boolean()
StartPos = EndPos = integer()
Draw = Target = wxDC:wxDC()
RenderRect = PageRect = {X :: integer(), Y :: integer(), W :: integer(), H :: integer()}
On Windows, will draw the document into a display context such as a printer.
formFeed(This :: wxStyledTextCtrl()) -> ok
Insert a Form Feed character.
getAnchor(This :: wxStyledTextCtrl()) -> integer()
Returns the position of the opposite end of the selection to the caret.
getBackSpaceUnIndents(This :: wxStyledTextCtrl()) -> boolean()
Does a backspace pressed when caret is within indentation unindent?
getBufferedDraw(This :: wxStyledTextCtrl()) -> boolean()
Is drawing done first into a buffer or direct to the screen?
getCaretForeground(This :: wxStyledTextCtrl()) -> wx:wx_colour4()
Get the foreground colour of the caret.
getCaretLineBackAlpha(This :: wxStyledTextCtrl()) -> integer()
Get the background alpha of the caret line.
getCaretLineBackground(This :: wxStyledTextCtrl()) -> wx:wx_colour4()
Get the colour of the background of the line containing the caret.
getCaretLineVisible(This :: wxStyledTextCtrl()) -> boolean()
Is the background of the line containing the caret in a different colour?
getCaretPeriod(This :: wxStyledTextCtrl()) -> integer()
Get the time in milliseconds that the caret is on and off.
getCaretSticky(This :: wxStyledTextCtrl()) -> integer()
Can the caret preferred x position only be changed by explicit movement commands?
The return value will be one of the ?wxSTC_CARETSTICKY_* constants.
getCaretWidth(This :: wxStyledTextCtrl()) -> integer()
Returns the width of the insert mode caret.
getCharAt(This :: wxStyledTextCtrl(), Pos :: integer()) -> integer()
Returns the character byte at the position.
getCodePage(This :: wxStyledTextCtrl()) -> integer()
Get the code page used to interpret the bytes of the document as characters.
getColumn(This :: wxStyledTextCtrl(), Pos :: integer()) -> integer()
Retrieve the column number of a position, taking tab width into account.
getControlCharSymbol(This :: wxStyledTextCtrl()) -> integer()
Get the way control characters are displayed.
getCurLine(This :: wxStyledTextCtrl()) -> Result
Types
Result = {Res :: unicode:charlist(), LinePos :: integer()}
Retrieve the text of the line containing the caret.
linePos can optionally be passed in to receive the index of the caret on the line.
getCurLineRaw(This :: wxStyledTextCtrl()) -> Result
Retrieve the text of the line containing the caret.
Returns the index of the caret on the line.
getCurrentLine(This :: wxStyledTextCtrl()) -> integer()
Returns the line number of the line with the caret.
getCurrentPos(This :: wxStyledTextCtrl()) -> integer()
Returns the position of the caret.
getEdgeColour(This :: wxStyledTextCtrl()) -> wx:wx_colour4()
Retrieve the colour used in edge indication.
getEdgeColumn(This :: wxStyledTextCtrl()) -> integer()
Retrieve the column number which text should be kept within.
getEdgeMode(This :: wxStyledTextCtrl()) -> integer()
Retrieve the edge highlight mode.
The return value will be one of the ?wxSTC_EDGE_* constants.
getEndAtLastLine(This :: wxStyledTextCtrl()) -> boolean()
Retrieve whether the maximum scroll position has the last line at the bottom of the view.
getEndStyled(This :: wxStyledTextCtrl()) -> integer()
Retrieve the position of the last correctly styled character.
getEOLMode(This :: wxStyledTextCtrl()) -> integer()
Retrieve the current end of line mode - one of wxSTC_EOL_CRLF, wxSTC_EOL_CR, or wxSTC_EOL_LF.
getFirstVisibleLine(This :: wxStyledTextCtrl()) -> integer()
Retrieve the display line at the top of the display.
getFoldExpanded(This :: wxStyledTextCtrl(), Line :: integer()) -> boolean()
Is a header line expanded?
getFoldLevel(This :: wxStyledTextCtrl(), Line :: integer()) -> integer()
Retrieve the fold level of a line.
getFoldParent(This :: wxStyledTextCtrl(), Line :: integer()) -> integer()
Find the parent line of a child line.
getHighlightGuide(This :: wxStyledTextCtrl()) -> integer()
Get the highlighted indentation guide column.
getIndent(This :: wxStyledTextCtrl()) -> integer()
Retrieve indentation size.
getIndentationGuides(This :: wxStyledTextCtrl()) -> integer()
Are the indentation guides visible?
The return value will be one of the ?wxSTC_IV_* constants.
getLastChild(This, Line, Level) -> integer()
Find the last child line of a header line.
getLastKeydownProcessed(This :: wxStyledTextCtrl()) -> boolean()
Can be used to prevent the EVT_CHAR handler from adding the char.
getLayoutCache(This :: wxStyledTextCtrl()) -> integer()
Retrieve the degree of caching of layout information.
The return value will be one of the ?wxSTC_CACHE_* constants.
getLength(This :: wxStyledTextCtrl()) -> integer()
Returns the number of bytes in the document.
getLexer(This :: wxStyledTextCtrl()) -> integer()
Retrieve the lexing language of the document.
The return value will be one of the ?wxSTC_LEX_* constants.
getLine(This :: wxStyledTextCtrl(), Line :: integer()) -> unicode:charlist()
Retrieve the contents of a line.
getLineCount(This :: wxStyledTextCtrl()) -> integer()
Returns the number of lines in the document.
There is always at least one.
getLineEndPosition(This :: wxStyledTextCtrl(), Line :: integer()) -> integer()
Get the position after the last visible characters on a line.
getLineIndentation(This :: wxStyledTextCtrl(), Line :: integer()) -> integer()
Retrieve the number of columns that a line is indented.
getLineIndentPosition(This, Line) -> integer()
Retrieve the position before the first non indentation character on a line.
getLineRaw(This :: wxStyledTextCtrl(), Line :: integer()) -> binary()
Retrieve the contents of a line.
getLineState(This :: wxStyledTextCtrl(), Line :: integer()) -> integer()
Retrieve the extra styling information for a line.
getLineVisible(This :: wxStyledTextCtrl(), Line :: integer()) -> boolean()
Is a line visible?
getMarginLeft(This :: wxStyledTextCtrl()) -> integer()
Returns the size in pixels of the left margin.
getMarginMask(This :: wxStyledTextCtrl(), Margin :: integer()) -> integer()
Retrieve the marker mask of a margin.
getMarginRight(This :: wxStyledTextCtrl()) -> integer()
Returns the size in pixels of the right margin.
getMarginSensitive(This :: wxStyledTextCtrl(), Margin :: integer()) -> boolean()
Retrieve the mouse click sensitivity of a margin.
getMarginType(This :: wxStyledTextCtrl(), Margin :: integer()) -> integer()
Retrieve the type of a margin.
The return value will be one of the ?wxSTC_MARGIN_* constants.
getMarginWidth(This :: wxStyledTextCtrl(), Margin :: integer()) -> integer()
Retrieve the width of a margin in pixels.
getMaxLineState(This :: wxStyledTextCtrl()) -> integer()
Retrieve the last line number that has line state.
getModEventMask(This :: wxStyledTextCtrl()) -> integer()
Get which document modification events are sent to the container.
The return value will wxSTCMODEVENTMASKALL if all changes generate events. Otherwise it will be a bit list containing one or more of the ?wxSTC_MOD\* constants, the ?wxSTC_PERFORMED_* constants, wxSTC_STARTACTION, wxSTC_MULTILINEUNDOREDO, wxSTC_MULTISTEPUNDOREDO, and wxSTC_LASTSTEPINUNDOREDO.
getModify(This :: wxStyledTextCtrl()) -> boolean()
Is the document different from when it was last saved?
getMouseDownCaptures(This :: wxStyledTextCtrl()) -> boolean()
Get whether mouse gets captured.
getMouseDwellTime(This :: wxStyledTextCtrl()) -> integer()
Retrieve the time the mouse must sit still to generate a mouse dwell event.
The return value will be a time in milliseconds or wxSTC_TIME_FOREVER.
getOvertype(This :: wxStyledTextCtrl()) -> boolean()
Returns true if overtype mode is active otherwise false is returned.
getPasteConvertEndings(This :: wxStyledTextCtrl()) -> boolean()
Get convert-on-paste setting.
getPrintColourMode(This :: wxStyledTextCtrl()) -> integer()
Returns the print colour mode.
The return value will be one of the ?wxSTC_PRINT_* constants.
getPrintMagnification(This :: wxStyledTextCtrl()) -> integer()
Returns the print magnification.
getPrintWrapMode(This :: wxStyledTextCtrl()) -> integer()
Is printing line wrapped?
The return value will be one of the ?wxSTC_WRAP_* constants.
getProperty(This, Key) -> unicode:charlist()
Retrieve a "property" value previously set with SetProperty.
getReadOnly(This :: wxStyledTextCtrl()) -> boolean()
In read-only mode?
getScrollWidth(This :: wxStyledTextCtrl()) -> integer()
Retrieve the document width assumed for scrolling.
getSearchFlags(This :: wxStyledTextCtrl()) -> integer()
Get the search flags used by SearchInTarget.
The return value will be a bit list containing one or more of the ?wxSTC_FIND_* constants.
getSelAlpha(This :: wxStyledTextCtrl()) -> integer()
Get the alpha of the selection.
getSelectedText(This :: wxStyledTextCtrl()) -> unicode:charlist()
Retrieve the selected text.
getSelectedTextRaw(This :: wxStyledTextCtrl()) -> binary()
Retrieve the selected text.
getSelection(This :: wxStyledTextCtrl()) -> Result
Gets the current selection span.
If the returned values are equal, there was no selection. Please note that the indices
returned may be used with the other wxTextCtrl methods but don't necessarily represent
the correct indices into the string returned by wxComboBox:getValue/1 for multiline controls under Windows (at
least,) you should use wxTextCtrl:getStringSelection/1 to get the selected text.
getSelectionEnd(This :: wxStyledTextCtrl()) -> integer()
Returns the position at the end of the selection.
getSelectionMode(This :: wxStyledTextCtrl()) -> integer()
Get the mode of the current selection.
The return value will be one of the ?wxSTC_SEL_* constants.
getSelectionStart(This :: wxStyledTextCtrl()) -> integer()
Returns the position at the start of the selection.
getSTCCursor(This :: wxStyledTextCtrl()) -> integer()
Get cursor type.
The return value will be one of the ?wxSTC_CURSOR* constants.
getSTCFocus(This :: wxStyledTextCtrl()) -> boolean()
Get internal focus flag.
getStatus(This :: wxStyledTextCtrl()) -> integer()
Get error status.
The return value will be one of the ?wxSTC_STATUS_* constants.
getStyleAt(This :: wxStyledTextCtrl(), Pos :: integer()) -> integer()
Returns the style byte at the position.
getStyleBits(This :: wxStyledTextCtrl()) -> integer()
Retrieve number of bits in style bytes used to hold the lexical state.
Deprecated:
getStyleBitsNeeded(This :: wxStyledTextCtrl()) -> integer()
Retrieve the number of bits the current lexer needs for styling.
Deprecated:
getTabIndents(This :: wxStyledTextCtrl()) -> boolean()
Does a tab pressed when caret is within indentation indent?
getTabWidth(This :: wxStyledTextCtrl()) -> integer()
Retrieve the visible size of a tab.
getTargetEnd(This :: wxStyledTextCtrl()) -> integer()
Get the position that ends the target.
getTargetStart(This :: wxStyledTextCtrl()) -> integer()
Get the position that starts the target.
getText(This :: wxStyledTextCtrl()) -> unicode:charlist()
Retrieve all the text in the document.
getTextLength(This :: wxStyledTextCtrl()) -> integer()
Retrieve the number of characters in the document.
getTextRange(This, StartPos, EndPos) -> unicode:charlist()
Retrieve a range of text.
getTextRangeRaw(This, StartPos, EndPos) -> binary()
Retrieve a range of text.
getTextRaw(This :: wxStyledTextCtrl()) -> binary()
Retrieve all the text in the document.
getTwoPhaseDraw(This :: wxStyledTextCtrl()) -> boolean()
Is drawing done in two phases with backgrounds drawn before foregrounds?
getUndoCollection(This :: wxStyledTextCtrl()) -> boolean()
Is undo history being collected?
getUseAntiAliasing(This :: wxStyledTextCtrl()) -> boolean()
Returns the current UseAntiAliasing setting.
getUseHorizontalScrollBar(This :: wxStyledTextCtrl()) -> boolean()
Is the horizontal scroll bar visible?
getUseTabs(This :: wxStyledTextCtrl()) -> boolean()
Retrieve whether tabs will be used in indentation.
getUseVerticalScrollBar(This :: wxStyledTextCtrl()) -> boolean()
Is the vertical scroll bar visible?
getViewEOL(This :: wxStyledTextCtrl()) -> boolean()
Are the end of line characters visible?
getViewWhiteSpace(This :: wxStyledTextCtrl()) -> integer()
Are white space characters currently visible? Returns one of wxSTCWS* constants.
getWrapMode(This :: wxStyledTextCtrl()) -> integer()
Retrieve whether text is word wrapped.
The return value will be one of the ?wxSTC_WRAP_* constants.
getWrapStartIndent(This :: wxStyledTextCtrl()) -> integer()
Retrieve the start indent for wrapped lines.
getWrapVisualFlags(This :: wxStyledTextCtrl()) -> integer()
Retrieve the display mode of visual flags for wrapped lines.
The return value will be a bit list containing one or more of the ?wxSTC_WRAPVISUALFLAG_* constants.
getWrapVisualFlagsLocation(This :: wxStyledTextCtrl()) -> integer()
Retrieve the location of visual flags for wrapped lines.
The return value will be a bit list containing one or more of the ?wxSTC_WRAPVISUALFLAGLOC_* constants.
getXOffset(This :: wxStyledTextCtrl()) -> integer()
Get the xOffset (ie, horizontal scroll position).
getZoom(This :: wxStyledTextCtrl()) -> integer()
Retrieve the zoom level.
gotoLine(This :: wxStyledTextCtrl(), Line :: integer()) -> ok
Set caret to start of a line and ensure it is visible.
gotoPos(This :: wxStyledTextCtrl(), Caret :: integer()) -> ok
Set caret to a position and ensure it is visible.
Make a range of lines invisible.
hideSelection(This :: wxStyledTextCtrl(), Hide :: boolean()) -> ok
Draw the selection in normal style or with selection highlighted.
home(This :: wxStyledTextCtrl()) -> ok
Move caret to first position on line.
homeDisplay(This :: wxStyledTextCtrl()) -> ok
Move caret to first position on display line.
homeDisplayExtend(This :: wxStyledTextCtrl()) -> ok
Move caret to first position on display line extending selection to new caret position.
homeExtend(This :: wxStyledTextCtrl()) -> ok
Move caret to first position on line extending selection to new caret position.
homeRectExtend(This :: wxStyledTextCtrl()) -> ok
Move caret to first position on line, extending rectangular selection to new caret position.
homeWrapExtend(This :: wxStyledTextCtrl()) -> ok
Like HomeExtend but when word-wrap is enabled extends first to start of display line HomeDisplayExtend, then to start of document line HomeExtend.
indicatorGetForeground(This, Indicator) -> wx:wx_colour4()
Retrieve the foreground colour of an indicator.
indicatorGetStyle(This, Indicator) -> integer()
Retrieve the style of an indicator.
The return value will be one of the ?wxSTC_INDIC_* constants.
Set the foreground colour of an indicator.
Set an indicator to plain, squiggle or TT.
The second argument should be one of the ?wxSTC_INDIC_* constants.
Insert string at a position.
Insert string at a position.
lineCopy(This :: wxStyledTextCtrl()) -> ok
Copy the line containing the caret.
lineCut(This :: wxStyledTextCtrl()) -> ok
Cut the line containing the caret.
lineDelete(This :: wxStyledTextCtrl()) -> ok
Delete the line containing the caret.
lineDown(This :: wxStyledTextCtrl()) -> ok
Move caret down one line.
lineDownExtend(This :: wxStyledTextCtrl()) -> ok
Move caret down one line extending selection to new caret position.
lineDownRectExtend(This :: wxStyledTextCtrl()) -> ok
Move caret down one line, extending rectangular selection to new caret position.
lineDuplicate(This :: wxStyledTextCtrl()) -> ok
Duplicate the current line.
lineEnd(This :: wxStyledTextCtrl()) -> ok
Move caret to last position on line.
lineEndDisplay(This :: wxStyledTextCtrl()) -> ok
Move caret to last position on display line.
lineEndDisplayExtend(This :: wxStyledTextCtrl()) -> ok
Move caret to last position on display line extending selection to new caret position.
lineEndExtend(This :: wxStyledTextCtrl()) -> ok
Move caret to last position on line extending selection to new caret position.
lineEndRectExtend(This :: wxStyledTextCtrl()) -> ok
Move caret to last position on line, extending rectangular selection to new caret position.
lineEndWrap(This :: wxStyledTextCtrl()) -> ok
Like LineEnd but when word-wrap is enabled goes first to end of display line LineEndDisplay, then to start of document line LineEnd.
lineEndWrapExtend(This :: wxStyledTextCtrl()) -> ok
Like LineEndExtend but when word-wrap is enabled extends first to end of display line LineEndDisplayExtend, then to start of document line LineEndExtend.
lineFromPosition(This :: wxStyledTextCtrl(), Pos :: integer()) -> integer()
Retrieve the line containing a position.
lineLength(This :: wxStyledTextCtrl(), Line :: integer()) -> integer()
How many characters are on a line, including end of line characters?
Scroll horizontally and vertically.
lineScrollDown(This :: wxStyledTextCtrl()) -> ok
Scroll the document down, keeping the caret visible.
lineScrollUp(This :: wxStyledTextCtrl()) -> ok
Scroll the document up, keeping the caret visible.
linesJoin(This :: wxStyledTextCtrl()) -> ok
Join the lines in the target.
linesOnScreen(This :: wxStyledTextCtrl()) -> integer()
Retrieves the number of lines completely visible.
linesSplit(This :: wxStyledTextCtrl(), PixelWidth :: integer()) -> ok
Split the lines in the target into lines that are less wide than pixelWidth where possible.
lineTranspose(This :: wxStyledTextCtrl()) -> ok
Switch the current line with the previous.
lineUp(This :: wxStyledTextCtrl()) -> ok
Move caret up one line.
lineUpExtend(This :: wxStyledTextCtrl()) -> ok
Move caret up one line extending selection to new caret position.
lineUpRectExtend(This :: wxStyledTextCtrl()) -> ok
Move caret up one line, extending rectangular selection to new caret position.
loadFile(This, Filename) -> boolean()
Load the contents of filename into the editor.
lowerCase(This :: wxStyledTextCtrl()) -> ok
Transform the selection to lower case.
markerAdd(This, Line, MarkerNumber) -> integer()
Add a marker to a line, returning an ID which can be used to find or delete the marker.
Add a set of markers to a line.
-spec markerDefine(This, MarkerNumber, MarkerSymbol) -> ok when This :: wxStyledTextCtrl(), MarkerNumber :: integer(), MarkerSymbol :: integer().
-spec markerDefine(This, MarkerNumber, MarkerSymbol, [Option]) -> ok when This :: wxStyledTextCtrl(), MarkerNumber :: integer(), MarkerSymbol :: integer(), Option :: {foreground, wx:wx_colour()} | {background, wx:wx_colour()}.
Set the symbol used for a particular marker number, and optionally the fore and background colours.
The second argument should be one of the ?wxSTC_MARK_* constants.
Define a marker with a wxBitmap.
Delete a marker from a line.
markerDeleteAll(This :: wxStyledTextCtrl(), MarkerNumber :: integer()) -> ok
Delete all markers with a particular number from all lines.
markerDeleteHandle(This :: wxStyledTextCtrl(), MarkerHandle :: integer()) -> ok
Delete a marker.
markerGet(This :: wxStyledTextCtrl(), Line :: integer()) -> integer()
Get a bit mask of all the markers set on a line.
markerLineFromHandle(This, MarkerHandle) -> integer()
Retrieve the line number at which a particular marker is located.
markerNext(This, LineStart, MarkerMask) -> integer()
Find the next line at or after lineStart that includes a marker in mask.
Return -1 when no more lines.
markerPrevious(This, LineStart, MarkerMask) -> integer()
Find the previous line before lineStart that includes a marker in mask.
Set the alpha used for a marker that is drawn in the text area, not the margin.
Set the background colour used for a particular marker number.
Set the foreground colour used for a particular marker number.
moveCaretInsideView(This :: wxStyledTextCtrl()) -> ok
Move the caret inside current view if it's not there already.
new() -> wxStyledTextCtrl()
Default ctor.
-spec new(Parent) -> wxStyledTextCtrl() when Parent :: wxWindow:wxWindow().
-spec new(Parent, [Option]) -> wxStyledTextCtrl() when Parent :: wxWindow:wxWindow(), Option :: {id, integer()} | {pos, {X :: integer(), Y :: integer()}} | {size, {W :: integer(), H :: integer()}} | {style, integer()}.
Ctor.
newLine(This :: wxStyledTextCtrl()) -> ok
Insert a new line, may use a CRLF, CR or LF depending on EOL mode.
pageDown(This :: wxStyledTextCtrl()) -> ok
Move caret one page down.
pageDownExtend(This :: wxStyledTextCtrl()) -> ok
Move caret one page down extending selection to new caret position.
pageDownRectExtend(This :: wxStyledTextCtrl()) -> ok
Move caret one page down, extending rectangular selection to new caret position.
pageUp(This :: wxStyledTextCtrl()) -> ok
Move caret one page up.
pageUpExtend(This :: wxStyledTextCtrl()) -> ok
Move caret one page up extending selection to new caret position.
pageUpRectExtend(This :: wxStyledTextCtrl()) -> ok
Move caret one page up, extending rectangular selection to new caret position.
paraDownExtend(This :: wxStyledTextCtrl()) -> ok
Extend selection down one paragraph (delimited by empty lines).
paraUp(This :: wxStyledTextCtrl()) -> ok
Move caret up one paragraph (delimited by empty lines).
paraUpExtend(This :: wxStyledTextCtrl()) -> ok
Extend selection up one paragraph (delimited by empty lines).
paste(This :: wxStyledTextCtrl()) -> ok
Paste the contents of the clipboard into the document replacing the selection.
Retrieve the point in the window where a position is displayed.
positionAfter(This :: wxStyledTextCtrl(), Pos :: integer()) -> integer()
Given a valid document position, return the next position taking code page into account.
Maximum value returned is the last position in the document.
positionBefore(This :: wxStyledTextCtrl(), Pos :: integer()) -> integer()
Given a valid document position, return the previous position taking code page into account.
Returns 0 if passed 0.
positionFromLine(This :: wxStyledTextCtrl(), Line :: integer()) -> integer()
Retrieve the position at the start of a line.
positionFromPoint(This, Pt) -> integer()
Find the position from a point within the window.
positionFromPointClose(This, X, Y) -> integer()
Find the position from a point within the window but return wxSTC_INVALID_POSITION if not close to text.
redo(This :: wxStyledTextCtrl()) -> ok
Redoes the next action on the undo history.
Register an image for use in autocompletion lists.
replaceSelection(This :: wxStyledTextCtrl(), Text :: unicode:chardata()) -> ok
Replace the selected text with the argument text.
replaceTarget(This, Text) -> integer()
Replace the target text with the argument text.
Text is counted so it can contain NULs. Returns the length of the replacement text.
saveFile(This, Filename) -> boolean()
Write the contents of the editor to filename.
scrollToColumn(This :: wxStyledTextCtrl(), Column :: integer()) -> ok
Scroll enough to make the given column visible.
scrollToLine(This :: wxStyledTextCtrl(), Line :: integer()) -> ok
Scroll enough to make the given line visible.
searchAnchor(This :: wxStyledTextCtrl()) -> ok
Sets the current caret position to be the search anchor.
searchInTarget(This, Text) -> integer()
Search for a counted string in the target and set the target to the found range.
Text is counted so it can contain NULs. Returns length of range or -1 for failure in which case target is not moved.
searchNext(This, SearchFlags, Text) -> integer()
Find some text starting at the search anchor.
Does not ensure the selection is visible.
searchPrev(This, SearchFlags, Text) -> integer()
Find some text starting at the search anchor and moving backwards.
Does not ensure the selection is visible.
selectAll(This :: wxStyledTextCtrl()) -> ok
Select all the text in the document.
selectionDuplicate(This :: wxStyledTextCtrl()) -> ok
Duplicate the selection.
If selection empty duplicate the line containing the caret.
selectionIsRectangle(This :: wxStyledTextCtrl()) -> boolean()
Is the selection rectangular? The alternative is the more common stream selection.
setAnchor(This :: wxStyledTextCtrl(), Anchor :: integer()) -> ok
Set the selection anchor to a position.
The anchor is the opposite end of the selection from the caret.
Sets whether a backspace pressed when caret is within indentation unindents.
setBufferedDraw(This :: wxStyledTextCtrl(), Buffered :: boolean()) -> ok
If drawing is buffered then each line of text is drawn into a bitmap buffer before drawing it to the screen to avoid flicker.
setCaretForeground(This :: wxStyledTextCtrl(), Fore :: wx:wx_colour()) -> ok
Set the foreground colour of the caret.
setCaretLineBackAlpha(This :: wxStyledTextCtrl(), Alpha :: integer()) -> ok
Set background alpha of the caret line.
setCaretLineBackground(This :: wxStyledTextCtrl(), Back :: wx:wx_colour()) -> ok
Set the colour of the background of the line containing the caret.
setCaretLineVisible(This :: wxStyledTextCtrl(), Show :: boolean()) -> ok
Display the background of the line containing the caret in a different colour.
Get the time in milliseconds that the caret is on and off.
0 = steady on.
Stop the caret preferred x position changing when the user types.
The input should be one of the ?wxSTC_CARETSTICKY_* constants.
setCaretWidth(This :: wxStyledTextCtrl(), PixelWidth :: integer()) -> ok
Set the width of the insert mode caret.
setCharsDefault(This :: wxStyledTextCtrl()) -> ok
Reset the set of characters for whitespace and word characters to the defaults.
setCodePage(This :: wxStyledTextCtrl(), CodePage :: integer()) -> ok
Set the code page used to interpret the bytes of the document as characters.
setControlCharSymbol(This :: wxStyledTextCtrl(), Symbol :: integer()) -> ok
Change the way control characters are displayed: If symbol is *< 32, keep the drawn way, else, use the given character.
setCurrentPos(This :: wxStyledTextCtrl(), Caret :: integer()) -> ok
Sets the position of the caret.
setEdgeColour(This :: wxStyledTextCtrl(), EdgeColour :: wx:wx_colour()) -> ok
Change the colour used in edge indication.
setEdgeColumn(This :: wxStyledTextCtrl(), Column :: integer()) -> ok
Set the column number of the edge.
If text goes past the edge then it is highlighted.
setEdgeMode(This :: wxStyledTextCtrl(), EdgeMode :: integer()) -> ok
The edge may be displayed by a line (wxSTC_EDGE_LINE/wxSTC_EDGE_MULTILINE) or by highlighting text that goes beyond it (wxSTC_EDGE_BACKGROUND) or not displayed at all (wxSTC_EDGE_NONE).
The input should be one of the ?wxSTC_EDGE_* constants.
setEOLMode(This :: wxStyledTextCtrl(), EolMode :: integer()) -> ok
Set the current end of line mode.
The input should be one of the ?wxSTC_EOL_* constants.
Show the children of a header line.
setFoldFlags(This :: wxStyledTextCtrl(), Flags :: integer()) -> ok
Set some style options for folding.
The second argument should be a bit list containing one or more of the ?wxSTC_FOLDFLAG_* constants.
Set the fold level of a line.
This encodes an integer level along with flags indicating whether the line is a header and whether it is effectively white space.
Set one of the colours used as a chequerboard pattern in the fold margin.
Set the other colour used as a chequerboard pattern in the fold margin.
setHighlightGuide(This :: wxStyledTextCtrl(), Column :: integer()) -> ok
Set the highlighted indentation guide column.
0 = no highlighted guide.
Set a back colour for active hotspots.
Set a fore colour for active hotspots.
Enable / Disable underlining active hotspots.
setHotspotSingleLine(This :: wxStyledTextCtrl(), SingleLine :: boolean()) -> ok
Limit hotspots to single line so hotspots on two lines don't merge.
Set the horizontal scrollbar to use instead of the one that's built-in.
setIndent(This :: wxStyledTextCtrl(), IndentSize :: integer()) -> ok
Set the number of spaces used for one level of indentation.
setIndentationGuides(This :: wxStyledTextCtrl(), IndentView :: integer()) -> ok
Show or hide indentation guides.
The input should be one of the ?wxSTC_IV_* constants.
Set up the key words used by the lexer.
setLastKeydownProcessed(This :: wxStyledTextCtrl(), Val :: boolean()) -> ok
Returns the line number of the line with the caret.
setLayoutCache(This :: wxStyledTextCtrl(), CacheMode :: integer()) -> ok
Sets the degree of caching of layout information.
The input should be one of the ?wxSTC_CACHE_* constants.
setLexer(This :: wxStyledTextCtrl(), Lexer :: integer()) -> ok
Set the lexing language of the document.
The input should be one of the ?wxSTC_LEX_* constants.
Set the lexing language of the document based on string name.
Change the indentation of a line to a number of columns.
Used to hold extra styling information for each line.
setMarginLeft(This :: wxStyledTextCtrl(), PixelWidth :: integer()) -> ok
Sets the size in pixels of the left margin.
Set a mask that determines which markers are displayed in a margin.
setMarginRight(This :: wxStyledTextCtrl(), PixelWidth :: integer()) -> ok
Sets the size in pixels of the right margin.
Make a margin sensitive or insensitive to mouse clicks.
Set the left and right margin in the edit area, measured in pixels.
Set a margin to be either numeric or symbolic.
The second argument should be one of the ?wxSTC_MARGIN_* constants.
Set the width of a margin to a width expressed in pixels.
setModEventMask(This :: wxStyledTextCtrl(), EventMask :: integer()) -> ok
Set which document modification events are sent to the container.
The input should be a bit list containing one or more of the ?wxSTC_MOD_* constants, the ?wxSTC_PERFORMED_* constants, wxSTC_STARTACTION, wxSTC_MULTILINEUNDOREDO, wxSTC_MULTISTEPUNDOREDO, and wxSTC_LASTSTEPINUNDOREDO. The input can also be wxSTC_MODEVENTMASKALL to indicate that all changes should generate events.
setMouseDownCaptures(This :: wxStyledTextCtrl(), Captures :: boolean()) -> ok
Set whether the mouse is captured when its button is pressed.
Sets the time the mouse must sit still to generate a mouse dwell event.
The input should be a time in milliseconds or wxSTC_TIME_FOREVER.
setPasteConvertEndings(This :: wxStyledTextCtrl(), Convert :: boolean()) -> ok
Enable/Disable convert-on-paste for line endings.
setPrintColourMode(This :: wxStyledTextCtrl(), Mode :: integer()) -> ok
Modify colours when printing for clearer printed text.
The input should be one of the ?wxSTC_PRINT_* constants.
Sets the print magnification added to the point size of each style for printing.
Set up a value that may be used by a lexer for some optional feature.
setReadOnly(This :: wxStyledTextCtrl(), ReadOnly :: boolean()) -> ok
Set to read only or read write.
setSavePoint(This :: wxStyledTextCtrl()) -> ok
Remember the current position in the undo history as the position at which the document was saved.
setScrollWidth(This :: wxStyledTextCtrl(), PixelWidth :: integer()) -> ok
Sets the document width assumed for scrolling.
setSearchFlags(This :: wxStyledTextCtrl(), SearchFlags :: integer()) -> ok
Set the search flags used by SearchInTarget.
The input should be a bit list containing one or more of the ?wxSTC_FIND_* constants.
setSelAlpha(This :: wxStyledTextCtrl(), Alpha :: integer()) -> ok
Set the alpha of the selection.
Set the background colour of the main and additional selections and whether to use this setting.
Selects the text starting at the first position up to (but not including) the character at the last position.
If both parameters are equal to -1 all text in the control is selected.
Notice that the insertion point will be moved to from by this function.
See: selectAll/1
setSelectionEnd(This :: wxStyledTextCtrl(), Caret :: integer()) -> ok
Sets the position that ends the selection - this becomes the caret.
setSelectionMode(This :: wxStyledTextCtrl(), SelectionMode :: integer()) -> ok
Set the selection mode to stream (wxSTC_SEL_STREAM) or rectangular (wxSTC_SEL_RECTANGLE/wxSTC_SEL_THIN) or by lines (wxSTC_SEL_LINES).
setSelectionStart(This :: wxStyledTextCtrl(), Anchor :: integer()) -> ok
Sets the position that starts the selection - this becomes the anchor.
Set the foreground colour of the main and additional selections and whether to use this setting.
setSTCCursor(This :: wxStyledTextCtrl(), CursorType :: integer()) -> ok
Sets the cursor to one of the wxSTC_CURSOR* values.
setSTCFocus(This :: wxStyledTextCtrl(), Focus :: boolean()) -> ok
Change internal focus flag.
setStatus(This :: wxStyledTextCtrl(), Status :: integer()) -> ok
Change error status - 0 = OK.
The input should be one of the ?wxSTC_STATUS_* constants.
setStyleBytes(This :: wxStyledTextCtrl(), Length :: integer()) -> integer()
Set the styles for a segment of the document.
Change style from current styling position for length characters to a style and move the current styling position to after this newly styled segment.
setTabIndents(This :: wxStyledTextCtrl(), TabIndents :: boolean()) -> ok
Sets whether a tab pressed when caret is within indentation indents.
setTabWidth(This :: wxStyledTextCtrl(), TabWidth :: integer()) -> ok
Change the visible size of a tab to be a multiple of the width of a space character.
setTargetEnd(This :: wxStyledTextCtrl(), End :: integer()) -> ok
Sets the position that ends the target which is used for updating the document without affecting the scroll position.
setTargetStart(This :: wxStyledTextCtrl(), Start :: integer()) -> ok
Sets the position that starts the target which is used for updating the document without affecting the scroll position.
setText(This :: wxStyledTextCtrl(), Text :: unicode:chardata()) -> ok
Replace the contents of the document with the argument text.
setTextRaw(This :: wxStyledTextCtrl(), Text :: binary()) -> ok
Replace the contents of the document with the argument text.
setTwoPhaseDraw(This :: wxStyledTextCtrl(), TwoPhase :: boolean()) -> ok
In twoPhaseDraw mode, drawing is performed in two phases, first the background and then the foreground.
This avoids chopping off characters that overlap the next run.
setUndoCollection(This :: wxStyledTextCtrl(), CollectUndo :: boolean()) -> ok
Choose between collecting actions into the undo history and discarding them.
Show or hide the horizontal scroll bar.
setUseTabs(This :: wxStyledTextCtrl(), UseTabs :: boolean()) -> ok
Indentation will only use space characters if useTabs is false, otherwise it will use a combination of tabs and spaces.
setUseVerticalScrollBar(This :: wxStyledTextCtrl(), Visible :: boolean()) -> ok
Show or hide the vertical scroll bar.
setViewEOL(This :: wxStyledTextCtrl(), Visible :: boolean()) -> ok
Make the end of line characters visible or invisible.
setViewWhiteSpace(This :: wxStyledTextCtrl(), ViewWS :: integer()) -> ok
Make white space characters invisible, always visible or visible outside indentation.
The input should be one of the ?wxSTC_WS_* constants.
Set the way the display area is determined when a particular line is to be moved to by Find, FindNext, GotoLine, etc.
The first argument should be a bit list containing one or more of the ?wxSTC_VISIBLE_* constants.
Set the vertical scrollbar to use instead of the one that's built-in.
Set the background colour of all whitespace and whether to use this setting.
Set the set of characters making up whitespace for when moving or selecting by word.
Should be called after SetWordChars.
Set the foreground colour of all whitespace and whether to use this setting.
setWordChars(This :: wxStyledTextCtrl(), Characters :: unicode:chardata()) -> ok
Set the set of characters making up words for when moving or selecting by word.
First sets defaults like SetCharsDefault.
setWrapMode(This :: wxStyledTextCtrl(), WrapMode :: integer()) -> ok
Sets whether text is word wrapped.
The input should be one of the ?wxSTC_WRAP_* constants.
setWrapStartIndent(This :: wxStyledTextCtrl(), Indent :: integer()) -> ok
Set the start indent for wrapped lines.
Set the display mode of visual flags for wrapped lines.
The input should be a bit list containing one or more of the ?wxSTC_WRAPVISUALFLAG_* constants.
Set the location of visual flags for wrapped lines.
The input should be a bit list containing one or more of the ?wxSTC_WRAPVISUALFLAGLOC_* constants.
Set the way the caret is kept visible when going sideways.
The exclusion zone is given in pixels.
The first argument should be a bit list containing one or more of the ?wxSTC_CARET_* constants.
Set the way the line the caret is on is kept visible.
The exclusion zone is given in lines.
The first argument should be a bit list containing one or more of the ?wxSTC_CARET_* constants.
setZoom(This :: wxStyledTextCtrl(), ZoomInPoints :: integer()) -> ok
Set the zoom level.
This number of points is added to the size of all fonts. It may be positive to magnify or negative to reduce.
Make a range of lines visible.
startRecord(This :: wxStyledTextCtrl()) -> ok
Start notifying the container of all key presses and commands.
startStyling(This :: wxStyledTextCtrl(), Start :: integer()) -> ok
Set the current styling position to start.
stopRecord(This :: wxStyledTextCtrl()) -> ok
Stop notifying the container of all key presses and commands.
stutteredPageDown(This :: wxStyledTextCtrl()) -> ok
Move caret to bottom of page, or one page down if already at bottom of page.
stutteredPageDownExtend(This :: wxStyledTextCtrl()) -> ok
Move caret to bottom of page, or one page down if already at bottom of page, extending selection to new caret position.
stutteredPageUp(This :: wxStyledTextCtrl()) -> ok
Move caret to top of page, or one page up if already at top of page.
stutteredPageUpExtend(This :: wxStyledTextCtrl()) -> ok
Move caret to top of page, or one page up if already at top of page, extending selection to new caret position.
styleClearAll(This :: wxStyledTextCtrl()) -> ok
Clear all the styles and make equivalent to the global default style.
styleResetDefault(This :: wxStyledTextCtrl()) -> ok
Reset the default style to its state at startup.
Set the background colour of a style.
Set a style to be bold or not.
Set a style to be mixed case, or to force upper or lower case.
The second argument should be one of the ?wxSTC_CASE_* constants.
Set the character set of the font in a style.
Converts the Scintilla character set values to a wxFontEncoding.
Set a style to have its end of line filled or not.
Set the font of a style.
Set style size, face, bold, italic, and underline attributes from a wxFont's
attributes.
-spec styleSetFontAttr(This, StyleNum, Size, FaceName, Bold, Italic, Underline) -> ok when This :: wxStyledTextCtrl(), StyleNum :: integer(), Size :: integer(), FaceName :: unicode:chardata(), Bold :: boolean(), Italic :: boolean(), Underline :: boolean().
-spec styleSetFontAttr(This, StyleNum, Size, FaceName, Bold, Italic, Underline, [Option]) -> ok when This :: wxStyledTextCtrl(), StyleNum :: integer(), Size :: integer(), FaceName :: unicode:chardata(), Bold :: boolean(), Italic :: boolean(), Underline :: boolean(), Option :: {encoding, wx:wx_enum()}.
Set all font style attributes at once.
Set the font encoding to be used by a style.
Set the foreground colour of a style.
Set a style to be a hotspot or not.
Set a style to be italic or not.
Set the size of characters of a style.
Extract style settings from a spec-string which is composed of one or more of the following comma separated elements:
bold turns on bold italic turns on italics fore:[name or #RRGGBB] sets the foreground colour back:[name or #RRGGBB] sets the background colour face:[facename] sets the font face name to use size:[num] sets the font size in points eol turns on eol filling underline turns on underlining
Set a style to be underlined or not.
Set a style to be visible or not.
tab(This :: wxStyledTextCtrl()) -> ok
If selection is empty or all on one line replace the selection with a tab character.
If more than one line selected, indent the lines.
targetFromSelection(This :: wxStyledTextCtrl()) -> ok
Make the target range start and end be the same as the selection range start and end.
textHeight(This :: wxStyledTextCtrl(), Line :: integer()) -> integer()
Retrieve the height of a particular line of text in pixels.
textWidth(This, Style, Text) -> integer()
Measure the pixel width of some text in a particular style.
Does not handle tab or control characters.
toggleCaretSticky(This :: wxStyledTextCtrl()) -> ok
Switch between sticky and non-sticky: meant to be bound to a key.
toggleFold(This :: wxStyledTextCtrl(), Line :: integer()) -> ok
Switch a header line between expanded and contracted.
undo(This :: wxStyledTextCtrl()) -> ok
Undo one action in the undo history.
upperCase(This :: wxStyledTextCtrl()) -> ok
Transform the selection to upper case.
usePopUp(This :: wxStyledTextCtrl(), PopUpMode :: integer()) -> ok
Set whether a pop up menu is displayed automatically when the user presses the wrong mouse button on certain areas.
The input should be one of the ?wxSTC_POPUP_* constants.
Remark: When wxContextMenuEvent is used to create a custom popup menu, this function
should be called with wxSTC_POPUP_NEVER. Otherwise the default menu will be shown instead
of the custom one.
Display a list of strings and send notification when user chooses one.
vCHome(This :: wxStyledTextCtrl()) -> ok
Move caret to before first visible character on line.
If already there move to first character on line.
vCHomeExtend(This :: wxStyledTextCtrl()) -> ok
Like VCHome but extending selection to new caret position.
vCHomeRectExtend(This :: wxStyledTextCtrl()) -> ok
Move caret to before first visible character on line.
If already there move to first character on line. In either case, extend rectangular selection to new caret position.
vCHomeWrap(This :: wxStyledTextCtrl()) -> ok
Like VCHome but when word-wrap is enabled goes first to start of display line VCHomeDisplay, then behaves like VCHome.
vCHomeWrapExtend(This :: wxStyledTextCtrl()) -> ok
Like VCHomeExtend but when word-wrap is enabled extends first to start of display line VCHomeDisplayExtend, then behaves like VCHomeExtend.
visibleFromDocLine(This, DocLine) -> integer()
Find the display line of a document line taking hidden lines into account.
wordEndPosition(This, Pos, OnlyWordCharacters) -> integer()
Get position of end of word.
wordLeft(This :: wxStyledTextCtrl()) -> ok
Move caret left one word.
wordLeftEnd(This :: wxStyledTextCtrl()) -> ok
Move caret left one word, position cursor at end of word.
wordLeftEndExtend(This :: wxStyledTextCtrl()) -> ok
Move caret left one word, position cursor at end of word, extending selection to new caret position.
wordLeftExtend(This :: wxStyledTextCtrl()) -> ok
Move caret left one word extending selection to new caret position.
wordPartLeft(This :: wxStyledTextCtrl()) -> ok
Move to the previous change in capitalisation.
wordPartLeftExtend(This :: wxStyledTextCtrl()) -> ok
Move to the previous change in capitalisation extending selection to new caret position.
wordPartRight(This :: wxStyledTextCtrl()) -> ok
Move to the change next in capitalisation.
wordPartRightExtend(This :: wxStyledTextCtrl()) -> ok
Move to the next change in capitalisation extending selection to new caret position.
wordRight(This :: wxStyledTextCtrl()) -> ok
Move caret right one word.
wordRightEnd(This :: wxStyledTextCtrl()) -> ok
Move caret right one word, position cursor at end of word.
wordRightEndExtend(This :: wxStyledTextCtrl()) -> ok
Move caret right one word, position cursor at end of word, extending selection to new caret position.
wordRightExtend(This :: wxStyledTextCtrl()) -> ok
Move caret right one word extending selection to new caret position.
wordStartPosition(This, Pos, OnlyWordCharacters) -> integer()
Get position of start of word.
wrapCount(This :: wxStyledTextCtrl(), DocLine :: integer()) -> integer()
The number of display lines needed to wrap a document line.
zoomIn(This :: wxStyledTextCtrl()) -> ok
Magnify the displayed text by increasing the sizes by 1 point.
zoomOut(This :: wxStyledTextCtrl()) -> ok
Make the displayed text smaller by decreasing the sizes by 1 point.