Defines the floating pointer in the document. Whenever text is inserted or deleted before the cursor, the position of the cursor is updated.
When called, the 'change'
event listener is removed.
any
Returns the current document.
Returns an object identifying the row
and column
position of the current anchor.
any
Fires whenever the anchor position changes.
Both of these objects have a row
and column
property corresponding to the position.
Events that can trigger this function include [[Anchor.setPosition setPosition()
]].
An object containing information about the anchor position. It has two properties:
old
: An object describing the old Anchor positionvalue
: An object describing the new Anchor positionany
Sets the anchor position to the specified row and column. If noClip
is true
, the position is not clipped.
The row index to move the anchor to
The column index to move the anchor to
Identifies if you want the position to be clipped
any
Tokenizes the current [[Document Document
]] in the background, and caches the tokenized rows for future use.
If a certain row is changed, everything below that row is re-tokenized.
Emits the 'update'
event. firstRow
and lastRow
are used to define the boundaries of the region to be updated.
The starting row region
The final row region
any
[Returns the state of tokenization at the end of a row.]{: #BackgroundTokenizer.getState}
The row to get state at
string
Gives list of tokens of the row. (tokens are cached)
The row to get tokens at
Sets a new document to associate with this object.
The new document to associate with
any
Sets a new tokenizer for this object.
The new tokenizer to use
any
Starts tokenizing at the row indicated.
The row to start at
any
Stops tokenizing.
any
Contains the text of the document. Document can be attached to several [[EditSession EditSession
]]s.
At its core, Document
s are just an array of strings, with each row in the document matching up to the array index.
Applies all the changes previously accumulated. These can be either 'includeText'
, 'insertLines'
, 'removeText'
, and 'removeLines'
.
any
Creates a new Anchor
to define a floating point in the document.
The row number to use
The column number to use
any
Returns all lines in the document as string array. Warning: The caller should not modify this array!
Array<string>
Returns the number of rows in the document.
number
Returns a verbatim copy of the given line as it is in the document
The row index to retrieve
string
Returns an array of strings of the rows between firstRow
and lastRow
. This function is inclusive of lastRow
.
The first row index to retrieve
The final row index to retrieve
Array<string>
Returns the newline character that's being used, depending on the value of newLineMode
.
string
[Returns the type of newlines being used; either windows
, unix
, or auto
]{: #Document.getNewLineMode}
string
[Given a range within the document, this function returns all the text within that range as a single string.]{: #Document.getTextRange.desc}
The range to work with
string
Returns all the lines in the document as a single string, split by the new line character.
string
Converts an index position in a document to a {row, column}
object.
Index refers to the "absolute position" of a character in the document. For example:
var x = 0; // 10 characters, plus one for newline
var y = -1;
Here, y
is an index 15: 11 characters for the first row, and 5 characters until y
in the second.
An index to convert
Inserts a block of text
and the indicated position
.
The position to start inserting at
A chunk of text to insert
any
Inserts text
into the position
at the current row. This method also triggers the 'change'
event.
The position to insert at
A chunk of text
any
Inserts the elements in lines
into the document, starting at the row index given by row
. This method also triggers the 'change'
event.
The index of the row to insert at
An array of strings
any
Inserts a new line into the document at the current row's position
. This method also triggers the 'change'
event.
The position to insert at
any
Returns true
if text
is a newline character (either \r\n
, \r
, or \n
).
The text to check
boolean
any
Converts the {row, column}
position in a document to the character's index.
Index refers to the "absolute position" of a character in the document. For example:
var x = 0; // 10 characters, plus one for newline
var y = -1;
Here, y
is an index 15: 11 characters for the first row, and 5 characters until y
in the second.
The {row, column}
to convert
number
Removes the range
from the document.
A specified Range to remove
any
Removes the specified columns from the row
. This method also triggers the 'change'
event.
The row to remove from
The column to start removing at
The column to stop removing at
any
Removes a range of full lines. This method also triggers the 'change'
event.
The first row to be removed
The last row to be removed
Array<string>
Removes the new line between row
and the row immediately following it. This method also triggers the 'change'
event.
The row to check
any
Replaces a range in the document with the new text
.
A specified Range to replace
The new text to use as a replacement
any
Reverts any changes previously applied. These can be either 'includeText'
, 'insertLines'
, 'removeText'
, and 'removeLines'
.
any
[Sets the new line mode.]{: #Document.setNewLineMode.desc}
{: #Document.setNewLineMode.param}
any
Replaces all the lines in the current Document
with the value of text
.
The text to use
any
Sets up a new EditSession
and associates it with the given Document
and TextMode
.
The main entry point into the Ace functionality.
The Editor
manages the EditSession (which manages Documents), as well as the VirtualRenderer, which draws everything to the screen.
Event sessions dealing with the mouse and keyboard are bubbled up from Document
to the Editor
, which decides what to do with them.
Indents the current line.
any
Outdents the current line.
any
Blurs the current textInput
.
any
Attempts to center the current selection on the screen.
any
{:Selection.clearSelection}
any
Copies all the selected lines down one row.
number
Copies all the selected lines up one row.
number
Cleans up the entire editor.
any
any
Attempts to find needle
within the document. For more information on options
, see [[Search Search
]].
The text to search for (optional)
An object defining various search properties
If true
animate scrolling
any
Performs another search for needle
in the document. For more information on options
, see [[Search Search
]].
search options
If true
animate scrolling
any
Performs a search for needle
backwards. For more information on options
, see [[Search Search
]].
search options
If true
animate scrolling
any
Brings the current textInput
into focus.
any
Returns true
if the behaviors are currently enabled. {:BehaviorsDef}
boolean
Returns the string of text currently highlighted.
string
Gets the current position of the cursor.
Returns the screen position of the cursor.
number
Returns the current mouse drag delay.
number
{:VirtualRenderer.getFirstVisibleRow}
number
Returns true
if current lines are always highlighted.
any
Returns true
if currently highlighted words are to be highlighted.
boolean
Returns the keyboard handler, such as "vim" or "windows".
string
{:Search.getOptions} For more information on options
, see [[Search Search
]].
any
{:VirtualRenderer.getLastVisibleRow}
number
Works like EditSession.getTokenAt, except it returns a number.
number
Returns true
if overwrites are enabled; false
otherwise.
boolean
Returns the column number of where the print margin is.
number
Returns true
if the editor is set to read-only mode.
boolean
Returns the value indicating how fast the mouse scroll speed is (in milliseconds).
number
Returns the currently highlighted selection.
{:Selection.getRange}
Returns the current selection style.
string
Returns the current session being used.
Returns true
if the fold widgets are shown.
any
Returns true
if invisible characters are being shown.
boolean
Returns true
if the print margin is being shown.
boolean
{:VirtualRenderer.getTheme}
string
Returns the current session's content.
string
Returns true
if the wrapping behaviors are currently enabled.
any
Moves the cursor to the specified line number, and also into the indiciated column.
The line number to go to
A column number to go to
If true
animates scolling
any
Shifts the document to wherever "page down" is, as well as moving the cursor position.
any
Shifts the document to wherever "page up" is, as well as moving the cursor position.
any
Inserts an indentation into the current cursor position or indents the selected lines.
any
Inserts text
into wherever the cursor is pointing.
The new text to add
any
Returns true
if the current textInput
is in focus.
any
Indicates if the entire row is currently visible on the screen.
The row to check
boolean
Indicates if the row is currently visible on the screen.
The row to check
boolean
Moves the cursor's row and column to the next matching bracket.
any
If the character before the cursor is a number, this functions changes its value by amount
.
The value to change the numeral by (can be negative to decrease value)
any
Moves the cursor to the specified row and column. Note that this does not de-select the current selection.
The new row number
The new column number
any
Moves the cursor to the position indicated by pos.row
and pos.column
.
An object with two properties, row and column
any
Shifts all the selected lines down one row.
number
Shifts all the selected lines up one row.
number
Moves a range of text from the given range to the given position. toPosition
is an object that looks like this:
{ row: newRowLocation, column: newColumnLocation }
The range of text you want moved within the document
The location (row and column) where you want to move the text to
Moves the cursor down in the document the specified number of times. Note that this does de-select the current selection.
The number of times to change navigation
any
Moves the cursor to the end of the current file. Note that this does de-select the current selection.
any
Moves the cursor to the start of the current file. Note that this does de-select the current selection.
any
Moves the cursor left in the document the specified number of times. Note that this does de-select the current selection.
The number of times to change navigation
any
Moves the cursor to the end of the current line. Note that this does de-select the current selection.
any
Moves the cursor to the start of the current line. Note that this does de-select the current selection.
any
Moves the cursor right in the document the specified number of times. Note that this does de-select the current selection.
The number of times to change navigation
any
Moves the cursor to the specified row and column. Note that this does de-select the current selection.
The new row number
The new column number
any
Moves the cursor up in the document the specified number of times. Note that this does de-select the current selection.
The number of times to change navigation
any
Moves the cursor to the word immediately to the left of the current position. Note that this does de-select the current selection.
any
Moves the cursor to the word immediately to the right of the current position. Note that this does de-select the current selection.
any
Emitted once the editor has been blurred.
any
any
any
Called whenever a text "copy" happens.
any
Emitted when the selection changes.
any
Called whenever a text "cut" happens.
any
Emitted whenever the document is changed.
Contains a single property, data
, which has the delta of changes
any
Emitted once the editor comes into focus.
any
Called whenever a text "paste" happens.
The pasted text
any
any
any
{:UndoManager.redo}
any
Removes words of text from the editor. A "word" is defined as a string of characters bookended by whitespace.
The direction of the deletion to occur, either "left" or "right"
any
Removes all the lines in the current selection
any
Removes all the words to the right of the current selection, until the end of the line.
any
Removes all the words to the left of the current selection, until the start of the line.
any
Removes the word directly to the left of the current selection.
any
Removes the word directly to the right of the current selection.
any
Replaces the first occurance of options.needle
with the value in replacement
.
The text to replace with
The [[Search Search
]] options to use
any
Replaces all occurances of options.needle
with the value in replacement
.
The text to replace with
The [[Search Search
]] options to use
any
{:VirtualRenderer.onResize}
If true
, recomputes the size, even if the height and width haven't changed
any
Scrolls the document to wherever "page down" is, without changing the cursor position.
any
Scrolls the document to wherever "page up" is, without changing the cursor position.
any
Scrolls to a line. If center
is true
, it puts the line in middle of screen (or attempts to).
The line to scroll to
If true
If true
animates scrolling
Function to be called when the animation has finished
any
Moves the editor to the specified row.
any
Selects all the text in editor.
any
any
Selects the text from the current position of the document until where a "page down" finishes.
any
Selects the text from the current position of the document until where a "page up" finishes.
any
Specifies whether to use behaviors or not. ["Behaviors" in this case is the auto-pairing of special characters, like quotation marks, parenthesis, or brackets.]{: #BehaviorsDef}
Enables or disables behaviors
any
Sets the delay (in milliseconds) of the mouse drag.
A value indicating the new delay
any
Set a new font size (in pixels) for the editor text.
A font size ( e.g. "12px")
any
Determines whether or not the current line should be highlighted.
Set to true
to highlight the current line
any
Determines if the currently selected word should be highlighted.
Set to true
to highlight the currently selected word
any
Sets a new key handler, such as "vim" or "windows".
The new key handler
any
Pass in true
to enable overwrites in your session, or false
to disable. If overwrites is enabled, any text you enter will type over any text after it. If the value of overwrite
changes, this function also emites the changeOverwrite
event.
Defines wheter or not to set overwrites
any
Sets the column defining where the print margin should be.
Specifies the new print margin
any
If readOnly
is true, then the editor is set to read-only mode, and none of the content can change.
Specifies whether the editor can be modified or not
any
Sets how fast the mouse scrolling should do.
A value indicating the new speed (in milliseconds)
any
Indicates how selections should occur.
By default, selections are set to "line". There are no other styles at the moment,
although this code change in the future.
This function also emits the 'changeSelectionStyle'
event.
The new selection style
any
Sets a new editsession to use. This method also emits the 'changeSession'
event.
The new session to use
any
Indicates whether the fold widgets are shown or not.
Specifies whether the fold widgets are shown
any
If showInvisibiles
is set to true
, invisible characters—like spaces or new lines—are show in the editor.
Specifies whether or not to show invisible characters
any
If showPrintMargin
is set to true
, the print margin is shown in the editor.
Specifies whether or not to show the print margin
any
{:VirtualRenderer.setStyle}
A class name
any
{:VirtualRenderer.setTheme}
The path to a theme
any
Sets the current document to val
.
The new value to set for the document
Where to set the new value. undefined
or 0 is selectAll, -1 is at the document start, and 1 is at the end
string
Specifies whether to use wrapping behaviors or not, i.e. automatically wrapping the selection with characters such as brackets when such a character is typed in.
Enables or disables wrapping behaviors
any
Splits the line at the current selection (by inserting an '\n'
).
any
Converts the current selection entirely into lowercase.
any
Converts the current selection entirely into uppercase.
any
Given the currently selected range, this function either comments all the lines, or uncomments all of them.
any
Sets the value of overwrite to the opposite of whatever it currently is.
any
Transposes current line.
any
{:UndoManager.undo}
any
{:VirtualRenderer.unsetStyle}
any
any
any
any
any
boolean
any
any
PlaceHolder.cancel() TODO
any
PlaceHolder.detach() TODO
any
PlaceHolder.hideOtherMarkers()
Hides all over markers in the [[EditSession EditSession
]] that are not the currently selected one.
any
any
PlaceHolder@onCursorChange(e) Emitted when the cursor changes.
any
PlaceHolder@onUpdate(e) Emitted when the place holder updates.
any
PlaceHolder.setup() TODO
any
PlaceHolder.showOtherMarkers() TODO
any
This object is used in various places to indicate a region within the editor. To better visualize how this works, imagine a rectangle. Each quadrant of the rectangle is analogus to a range, as ranges contain a starting row and starting column, and an ending row, and ending column.
Returns the part of the current Range
that occurs within the boundaries of firstRow
and lastRow
as a new Range
object.
The starting row
The ending row
Returns a duplicate of the calling range.
Returns a range containing the starting and ending rows of the original range, but with a column value of 0
.
Checks the row and column points with the row and column points of the calling range.
A row point to compare with
A column point to compare with
number
Checks the row and column points with the row and column points of the calling range.
A row point to compare with
A column point to compare with
number
Checks the row and column points with the row and column points of the calling range.
A row point to compare with
A column point to compare with
number
Checks the row and column points of p
with the row and column points of the calling range.
A point to compare with
number
Compares this
range (A) with another range (B).
A range to compare with
number
Checks the row and column points with the row and column points of the calling range.
A row point to compare with
A column point to compare with
number
Returns true
if the row
and column
provided are within the given range. This can better be expressed as returning true
if:
this.start.row <= row <= this.end.row &&
this.start.column <= column <= this.end.column
A row to check for
A column to check for
boolean
Checks the start and end points of range
and compares them to the calling range. Returns true
if the range
is contained within the caller's range.
A range to compare with
boolean
Changes the row and column points for the calling range for both the starting and ending points.
A new row to extend to
A new column to extend to
Creates and returns a new Range
based on the row and column of the given parameters.
Returns true
if the row
and column
are within the given range.
A row point to compare with
A column point to compare with
boolean
Returns true
if the row
and column
are within the given range's ending points.
A row point to compare with
A column point to compare with
boolean
Returns true
if the row
and column
are within the given range's starting points.
A row point to compare with
A column point to compare with
boolean
Returns true
if passed in range
intersects with the one calling this method.
A range to compare with
boolean
boolean
Returns true
if the caller's ending row point is the same as row
, and if the caller's ending column is the same as column
.
A row point to compare with
A column point to compare with
boolean
Returns true
if and only if the starting row and column, and ending row and column, are equivalent to those given by range
.
A range to check against
any
Returns true
if the range spans across multiple lines.
boolean
Returns true
if the caller's starting row point is the same as row
, and if the caller's starting column is the same as column
.
A row point to compare with
A column point to compare with
boolean
Sets the starting row and column for the range.
A row point to set
A column point to set
any
Sets the starting row and column for the range.
A row point to set
A column point to set
any
Given the current Range
, this function converts those starting and ending points into screen positions, and then returns a new Range
object.
The EditSession
to retrieve coordinates from
Returns a string containing the range's row and column information, given like this:
[start.row/start.column] -> [end.row/end.column]
any
A set of methods for setting and retrieving the editor's scrollbar.
Returns the width of the scroll bar.
number
Emitted when the scroll bar, well, scrolls.
Contains one property, "data"
, which indicates the current scroll top position
any
Sets the height of the scroll bar, in pixels.
The new height
any
Sets the inner height of the scroll bar, in pixels.
The new inner height
any
Sets the scroll top of the scroll bar.
The new scroll top
any
A class designed to handle all sorts of text searches within a [[Document Document
]].
Searches for options.needle
. If found, this method returns the [[Range Range
]] where the text first occurs. If options.backwards
is true
, the search goes backwards in the session.
The session to search with
Searches for all occurances options.needle
. If found, this method returns an array of [[Range Range
s]] where the text first occurs. If options.backwards
is true
, the search goes backwards in the session.
The session to search with
Range[]
[Returns an object containing all the search options.]{: #Search.getOptions}
any
Searches for options.needle
in input
, and, if found, replaces it with replacement
.
The text to search in
The replacing text
options.regExp
is true
, this function returns input
with the replacement already made. Otherwise, this function just returns replacement
.options.needle
was not found, this function returns null
.string
Sets the search options via the options
parameter.
An object containing all the new search properties
Sets the search options via the options
parameter.
object containing all the search propertie
any
Contains the cursor position and the text selection of an edit session. The row/columns used in the selection are in document coordinates representing ths coordinates as thez appear in the document before applying soft wrap and folding.
any
any
[Empties the selection (by de-selecting it). This function also emits the 'changeSelection'
event.]{: #Selection.clearSelection}
any
any
Range[]
Gets the current position of the cursor.
[Returns the Range for the selected text.]{: #Selection.getRange}
Returns an object containing the row
and column
of the calling selection anchor.
any
Returns an object containing the row
and column
of the calling selection lead.
any
Moves the selection to highlight the entire word.
any
Returns true
if the selection is going backwards in the document.
boolean
Returns true
if the selection is empty.
boolean
Returns true
if the selection is a multi-line.
boolean
Moves the cursor to position indicated by the parameters. Negative numbers move the cursor backwards in the document.
The number of rows to move by
The number of characters to move by
any
Moves the cursor down one row.
any
Moves the cursor to the end of the file.
any
Moves the cursor to the start of the file.
any
Moves the cursor left one column.
any
Moves the cursor to the end of the line.
any
Moves the cursor to the start of the line.
any
Moves the cursor to the word on the left.
any
Moves the cursor to the word on the right.
any
Moves the cursor right one column.
any
Moves the cursor to the row and column provided. [If preventUpdateDesiredColumn
is true
, then the cursor stays in the same column position as its original point.]{: #preventUpdateBoolDesc}
The row to move to
The column to move to
{: #preventUpdateBool}
any
Moves the selection to the position indicated by its row
and column
.
The position to move to
any
Moves the cursor to the screen position indicated by row and column. {:preventUpdateBoolDesc}
The row to move to
The column to move to
any
Moves the cursor up one row.
any
any
any
any
Selects a word, including its right whitespace.
any
Selects all the text in the document.
any
Moves the selection down one row.
any
Moves the selection to the end of the file.
any
Moves the selection to the start of the file.
any
Moves the selection left one column.
any
Selects the entire line.
any
Moves the selection to the end of the current line.
any
Moves the selection to the beginning of the current line.
any
Moves the selection right one column.
any
Moves the selection cursor to the indicated row and column.
The row to select to
The column to select to
any
Moves the selection cursor to the row and column indicated by pos
.
An object containing the row and column
any
Moves the selection up one row.
any
Selects an entire word boundary.
any
Moves the selection to the first word on the left.
any
Moves the selection to the first word on the right.
any
Sets the selection to the provided range.
The range of text to select
Indicates if the range should go backwards (true
) or not
any
Sets the row and column position of the anchor. This function also emits the 'changeSelection'
event.
The new row
The new column
any
any
Shifts the selection up (or down, if [[Selection.isBackwards isBackwards()
]] is true) the given number of columns.
The number of columns to shift by
any
Blurs the current editor.
any
Focuses the current editor.
any
Executes callback
on all of the available editors.
A callback function to execute
The default scope for the callback
any
Returns the current editor.
Returns the editor identified by the index idx
.
The index of the editor you want
any
Returns the orientation.
number
Returns the number of splits.
number
Resizes the editor.
any
Sets the font size, in pixels, for all the available editors.
The new font size
any
Sets the keyboard handler for the editor.
any
Sets the orientation.
The new orientation value
any
Sets a new [[EditSession EditSession
]] for the indicated editor.
The new edit session
The editor's index you're interested in
any
Sets a theme for each of the available editors.
The name of the theme to set
any
This class provides an essay way to treat the document as a stream of tokens, and provides methods to iterate over these tokens.
Returns the current tokenized string.
Returns the current column.
number
Returns the current row.
number
Tokenizes all the items from the current point to the row prior in the document.
Array<string>
Tokenizes all the items from the current point until the next row in the document. If the current point is at the end of the file, this function returns null
. Otherwise, it returns the tokenized string.
string
This class takes a set of highlighting rules, and creates a tokenizer out of them. For more information, see the wiki on extending highlighters.
Returns an object containing two properties: tokens
, which contains all the tokens; and state
, the current state.
any
This object maintains the undo stack for an [[EditSession EditSession
]].
Provides a means for implementing your own undo manager. options
has one property, args
, an [[Array Array
]], with two elements:
args[0]
is an array of deltasargs[1]
is the document to associate withContains additional properties
any
Returns true
if there are redo operations left to perform.
boolean
Returns true
if there are undo operations left to perform.
boolean
[Perform a redo operation on the document, reimplementing the last change.]{: #UndoManager.redo}
any
Destroys the stack of undo and redo redo operations.
any
[Perform an undo operation on the document, reverting the last change.]{: #UndoManager.undo}
The class that is responsible for drawing everything you see on the screen!
Deprecated; (moved to EditSession)
any
Adjusts the wrap limit, which is the number of characters that can fit within the width of the edit area on screen.
any
Destroys the text and cursor layers for this renderer.
any
Returns whether an animated scroll happens or not.
boolean
Returns the root element containing this renderer.
HTMLElement
Returns the index of the first fully visible row. "Fully" here means that the characters in the row are not truncated; that the top and the bottom of the row are on the screen.
number
[Returns the index of the first visible row.]{: #VirtualRenderer.getFirstVisibleRow}
number
Returns whether the horizontal scrollbar is set to be always visible.
boolean
Returns the index of the last fully visible row. "Fully" here means that the characters in the row are not truncated; that the top and the bottom of the row are on the screen.
number
[Returns the index of the last visible row.]{: #VirtualRenderer.getLastVisibleRow}
number
Returns the element that the mouse events are attached to
HTMLElement
Returns whether the print margin column is being shown or not.
boolean
Returns the last visible row, regardless of whether it's fully visible or not.
number
{:EditSession.getScrollLeft}
number
{:EditSession.getScrollTop}
number
Returns the first visible row, regardless of whether it's fully visible or not.
number
Returns true
if the gutter is being shown.
boolean
Returns whether invisible characters are being shown or not.
boolean
Returns whether the print margin is being shown or not.
boolean
Returns the element to which the hidden text area is added.
HTMLElement
[Returns the path of the current theme.]{: #VirtualRenderer.getTheme}
string
Hides the current composition.
any
Hides the cursor icon.
any
Returns true
if you can still scroll by either parameter; in other words, you haven't reached the end of the file or line.
The x value to scroll by
The y value to scroll by
boolean
[Triggers a resize of the editor.]{: #VirtualRenderer.onResize}
If true
, recomputes the size, even if the height and width haven't changed
The width of the gutter in pixels
The width of the editor in pixels
The hiehgt of the editor, in pixels
any
Deprecated; (moved to EditSession)
any
any
Scrolls the editor across both x- and y-axes.
The x value to scroll by
The y value to scroll by
any
Scrolls the cursor into the first visibile area of the editor
any
Gracefully scrolls the editor to the row indicated.
A line number
If true
, centers the editor the to indicated line
If true
animates scrolling
Function to be called after the animation has finished
any
Gracefully scrolls from the top of the editor to the row indicated.
A row id
any
Scrolls the editor across the x-axis to the pixel indicated.
The position to scroll to
number
Scrolls the editor to the y pixel indicated.
The position to scroll to
number
Identifies whether you want to have an animated scroll or not.
Set to true
to show animated scrolls
any
Sets annotations for the gutter.
An array containing annotations
any
Sets the inner text of the current composition to text
.
A string of text to use
any
Identifies whether you want to show the horizontal scrollbar or not.
Set to true
to make the horizontal scroll bar visible
any
Sets the padding for all the layers.
A new padding value (in pixels)
any
Identifies whether you want to show the print margin column or not.
Set to true
to show the print margin column
any
Associates the renderer with an [[EditSession EditSession
]].
any
Identifies whether you want to show the gutter or not.
Set to true
to show the gutter
any
Identifies whether you want to show invisible characters or not.
Set to true
to show invisibles
any
Identifies whether you want to show the print margin or not.
Set to true
to show the print margin
any
[Adds a new class, style
, to the editor.]{: #VirtualRenderer.setStyle}
A class name
any
[Sets a new theme for the editor. theme
should exist, and be a directory path, like ace/theme/textmate
.]{: #VirtualRenderer.setTheme}
The path to a theme
any
undefined
any
Shows the cursor icon.
any
Returns an object containing the pageX
and pageY
coordinates of the document position.
The document row position
The document column position
any
[Removes the class style
from the editor.]{: #VirtualRenderer.unsetStyle}
A class name
any
Schedules an update to all the back markers in the document.
any
Redraw breakpoints.
any
Updates the cursor icon.
any
Updates the font size.
any
Schedules an update to all the front markers in the document.
any
Triggers a full update of all the layers, for all the rows.
If true
, forces the changes through
any
Triggers a partial update of the text, from the range given by the two parameters.
The first row to update
The last row to update
any
Triggers a full update of the text, for all the rows.
any
Blurs the current container.
any
Focuses the current container.
any