diff --git a/api/ace.html b/api/ace.html index ec6b6008..db3f017e 100644 --- a/api/ace.html +++ b/api/ace.html @@ -3,8 +3,8 @@ Ace - Ace API

The main class required to set up an Ace instance in the browser.

Methods

This method embeds the Ace editor into the DOM, at the element provided by el.

-

This method embeds the Ace editor into the DOM, at the element provided by el.

-

   

Arguments

elString | DOMElementRequired. Either the id of an element, or the element itself
+

   

This method embeds the Ace editor into the DOM, at the element provided by el.

+

Arguments

elString | DOMElementRequired. Either the id of an element, or the element itself
diff --git a/api/anchor.html b/api/anchor.html index f0c6ddb6..8e7c78de 100644 --- a/api/anchor.html +++ b/api/anchor.html @@ -2,21 +2,21 @@ Anchor - Ace API

Defines the floating pointer in the document. Whenever text is inserted or deleted before the cursor, the position of the cursor is updated

-

Constructors

Creates a new Anchor and associates it with a document.

-

Creates a new Anchor and associates it with a document.

-

   

Arguments

docDocumentRequired. The document to associate with the anchor
rowNumberRequired. The starting row position
columnNumberRequired. The starting column position

Events

    • Anchor.on("change", function(Event e))

    Fires whenever the anchor position changes. Events that can trigger this function include 'insertText', 'insertLines', 'removeText', and 'removeLines'.

    -

    Fires whenever the anchor position changes. Events that can trigger this function include 'insertText', 'insertLines', 'removeText', and 'removeLines'.

    -

       

    Arguments

    eEventRequired. Contains data about the event

    Methods

      • Internal

    Clips the anchor position to the specified row and column.

    -

    Clips the anchor position to the specified row and column.

    -

       

    Arguments

    rowNumberRequired. The row index to clip the anchor to
    columnNumberRequired. The column index to clip the anchor to
      • Anchor.detach()

      When called, the 'change' event listener is removed.

      -

      When called, the 'change' event listener is removed.

      -

         

      Returns the current document.

      -

      Returns the current document.

      -

         

      Returns an object identifying the row and column position of the current anchor.

      -

      Returns an object identifying the row and column position of the current anchor.

      -

         

      Sets the anchor position to the specified row and column. If noClip is true, the position is not clipped.

      -

      Sets the anchor position to the specified row and column. If noClip is true, the position is not clipped.

      -

         

      Arguments

      rowNumberRequired. The row index to move the anchor to
      columnNumberRequired. The column index to move the anchor to
      noClipBooleanRequired. Identifies if you want the position to be clipped
      +

      Constructors

      Creates a new Anchor and associates it with a document.

      +

         

      Creates a new Anchor and associates it with a document.

      +

      Arguments

      docDocumentRequired. The document to associate with the anchor
      rowNumberRequired. The starting row position
      columnNumberRequired. The starting column position

      Events

        • Anchor.on("change", function(Event e))

        Fires whenever the anchor position changes. Events that can trigger this function include 'insertText', 'insertLines', 'removeText', and 'removeLines'.

        +

           

        Fires whenever the anchor position changes. Events that can trigger this function include 'insertText', 'insertLines', 'removeText', and 'removeLines'.

        +

        Arguments

        eEventRequired. Contains data about the event

        Methods

          • Internal

        Clips the anchor position to the specified row and column.

        +

           

        Clips the anchor position to the specified row and column.

        +

        Arguments

        rowNumberRequired. The row index to clip the anchor to
        columnNumberRequired. The column index to clip the anchor to
          • Anchor.detach()

          When called, the 'change' event listener is removed.

          +

             

          When called, the 'change' event listener is removed.

          +

          Returns the current document.

          +

             

          Returns the current document.

          +

          Returns an object identifying the row and column position of the current anchor.

          +

             

          Returns an object identifying the row and column position of the current anchor.

          +

          Sets the anchor position to the specified row and column. If noClip is true, the position is not clipped.

          +

             

          Sets the anchor position to the specified row and column. If noClip is true, the position is not clipped.

          +

          Arguments

          rowNumberRequired. The row index to move the anchor to
          columnNumberRequired. The column index to move the anchor to
          noClipBooleanRequired. Identifies if you want the position to be clipped
          diff --git a/api/background_tokenizer.html b/api/background_tokenizer.html index a99b9030..3e49b546 100644 --- a/api/background_tokenizer.html +++ b/api/background_tokenizer.html @@ -2,23 +2,23 @@ BackgroundTokenizer - Ace API

          Tokenizes the current 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.

          -

          Constructors

          Creates a new BackgroundTokenizer object.

          -

          Creates a new BackgroundTokenizer object.

          -

             

          Arguments

          tokenizerTokenizerRequired. The tokenizer to use
          editorEditorRequired. The editor to associate with

          Methods

            • BackgroundTokenizer.fireUpdateEvent(Number firstRow, Number lastRow)

            Emits the 'update' event. firstRow and lastRow are used to define the boundaries of the region to be updated.

            -

            Emits the 'update' event. firstRow and lastRow are used to define the boundaries of the region to be updated.

            -

               

            Arguments

            firstRowNumberRequired. The starting row region
            lastRowNumberRequired. The final row region

            Returns the state of tokenization at the end of a row.

            -

            Returns the state of tokenization at the end of a row.

            -

               

            Arguments

            rowNumberRequired. The row to get state at

            Gives list of tokens of the row. (tokens are cached)

            -

            Gives list of tokens of the row. (tokens are cached)

            -

               

            Arguments

            rowNumberRequired. The row to get tokens at
              • BackgroundTokenizer.setDocument(Document doc)

              Sets a new document to associate with this object.

              -

              Sets a new document to associate with this object.

              -

                 

              Arguments

              docDocumentRequired. The new document to associate with
                • BackgroundTokenizer.setTokenizer(Tokenizer tokenizer)

                Sets a new tokenizer for this object.

                -

                Sets a new tokenizer for this object.

                -

                   

                Arguments

                tokenizerTokenizerRequired. The new tokenizer to use
                  • BackgroundTokenizer.start(Number startRow)

                  Starts tokenizing at the row indicated.

                  -

                  Starts tokenizing at the row indicated.

                  -

                     

                  Arguments

                  startRowNumberRequired. The row to start at
                    • BackgroundTokenizer.stop()

                    Stops tokenizing.

                    -

                    Stops tokenizing.

                    -

                       

                    +

                    Constructors

                    Creates a new BackgroundTokenizer object.

                    +

                       

                    Creates a new BackgroundTokenizer object.

                    +

                    Arguments

                    tokenizerTokenizerRequired. The tokenizer to use
                    editorEditorRequired. The editor to associate with

                    Methods

                      • BackgroundTokenizer.fireUpdateEvent(Number firstRow, Number lastRow)

                      Emits the 'update' event. firstRow and lastRow are used to define the boundaries of the region to be updated.

                      +

                         

                      Emits the 'update' event. firstRow and lastRow are used to define the boundaries of the region to be updated.

                      +

                      Arguments

                      firstRowNumberRequired. The starting row region
                      lastRowNumberRequired. The final row region

                      Returns the state of tokenization at the end of a row.

                      +

                         

                      Returns the state of tokenization at the end of a row.

                      +

                      Arguments

                      rowNumberRequired. The row to get state at

                      Gives list of tokens of the row. (tokens are cached)

                      +

                         

                      Gives list of tokens of the row. (tokens are cached)

                      +

                      Arguments

                      rowNumberRequired. The row to get tokens at
                        • BackgroundTokenizer.setDocument(Document doc)

                        Sets a new document to associate with this object.

                        +

                           

                        Sets a new document to associate with this object.

                        +

                        Arguments

                        docDocumentRequired. The new document to associate with
                          • BackgroundTokenizer.setTokenizer(Tokenizer tokenizer)

                          Sets a new tokenizer for this object.

                          +

                             

                          Sets a new tokenizer for this object.

                          +

                          Arguments

                          tokenizerTokenizerRequired. The new tokenizer to use
                            • BackgroundTokenizer.start(Number startRow)

                            Starts tokenizing at the row indicated.

                            +

                               

                            Starts tokenizing at the row indicated.

                            +

                            Arguments

                            startRowNumberRequired. The row to start at
                              • BackgroundTokenizer.stop()

                              Stops tokenizing.

                              +

                                 

                              Stops tokenizing.

                              +
                              diff --git a/api/command_manager.html b/api/command_manager.html index 38d97f4b..77143c13 100644 --- a/api/command_manager.html +++ b/api/command_manager.html @@ -1,9 +1,9 @@ - CommandManager - Ace API

                              Constructors

                              TODO

                              -

                              TODO

                              -

                                 

                              Arguments

                              platformStringRequired. Identifier for the platform; must be either 'mac' or 'win'
                              commandsArrayRequired. A list of commands
                              + CommandManager - Ace API

                              Constructors

                              TODO

                              +

                                 

                              TODO

                              +

                              Arguments

                              platformStringRequired. Identifier for the platform; must be either 'mac' or 'win'
                              commandsArrayRequired. A list of commands
                              diff --git a/api/document.html b/api/document.html index d854246e..3fe3280a 100644 --- a/api/document.html +++ b/api/document.html @@ -2,55 +2,55 @@ Document - Ace API

                              Contains the text of the document. Document can be attached to several EditSessions. At its core, Documents are just an array of strings, with each row in the document matching up to the array index.

                              -

                              Constructors

                              Creates a new Document. If text is included, the Document contains those strings; otherwise, it's empty.

                              -

                              Creates a new Document. If text is included, the Document contains those strings; otherwise, it's empty.

                              -

                                 

                              Arguments

                              textString | ArrayRequired. The starting text

                              Methods

                                • Document.$clipPosition(position)
                                • Internal

                                 

                                • Document.$detectNewLine(text)
                                  • Void
                                • Internal

                                 

                              Splits a string of text on any newline (\n) or carriage-return ('\r') characters.

                              -

                              Splits a string of text on any newline (\n) or carriage-return ('\r') characters.

                              -

                                 

                              Arguments

                              textStringRequired. The text to work with
                                • Document.applyDeltas(deltas)
                                  • Void

                                Applies all the changes previously accumulated. These can be either 'includeText', 'insertLines', 'removeText', and 'removeLines'.

                                -

                                Applies all the changes previously accumulated. These can be either 'includeText', 'insertLines', 'removeText', and 'removeLines'.

                                -

                                   

                                Creates a new Anchor to define a floating point in the document.

                                -

                                Creates a new Anchor to define a floating point in the document.

                                -

                                   

                                Arguments

                                rowNumberRequired. The row number to use
                                columnNumberRequired. The column number to use
                                  • Document.getAllLines()

                                  Returns all lines in the document as string array. Warning: The caller should not modify this array!

                                  -

                                  Returns all lines in the document as string array. Warning: The caller should not modify this array!

                                  -

                                     

                                  Returns the number of rows in the document.

                                  -

                                  Returns the number of rows in the document.

                                  -

                                     

                                  Returns a verbatim copy of the given line as it is in the document

                                  -

                                  Returns a verbatim copy of the given line as it is in the document

                                  -

                                     

                                  Arguments

                                  rowNumberRequired. The row index to retrieve

                                  Returns an array of strings of the rows between firstRow and lastRow. This function is inclusive of lastRow.

                                  -

                                  Returns an array of strings of the rows between firstRow and lastRow. This function is inclusive of lastRow.

                                  -

                                     

                                  Arguments

                                  firstRowNumberRequired. The first row index to retrieve
                                  lastRowNumberRequired. The final row index to retrieve
                                    • Document.getNewLineCharacter()

                                    Returns the newline character that's being used, depending on the value of newLineMode.

                                    -

                                    Returns the newline character that's being used, depending on the value of newLineMode.

                                    -

                                       

                                      • Document.getNewLineMode()

                                      Returns the type of newlines being used; either windows, unix, or auto

                                      -

                                      Returns the type of newlines being used; either windows, unix, or auto

                                      -

                                         

                                      Given a range within the document, this function returns all the text within that range as a single string.

                                      -

                                      Given a range within the document, this function returns all the text within that range as a single string.

                                      -

                                         

                                      Arguments

                                      rangeRangeRequired. The range to work with

                                      Returns all the lines in the document as a single string, split by the new line character.

                                      -

                                      Returns all the lines in the document as a single string, split by the new line character.

                                      -

                                         

                                         

                                      Arguments

                                      positionNumberRequired. The position to start inserting at
                                      textStringRequired. A chunk of text to insert

                                      Inserts text into the position at the current row. This method also triggers the 'change' event.

                                      -

                                      Inserts text into the position at the current row. This method also triggers the 'change' event.

                                      -

                                         

                                      Arguments

                                      positionNumberRequired. The position to insert at
                                      textStringRequired. A chunk of text

                                      Inserts the elements in lines into the document, starting at the row index given by row. This method also triggers the 'change' event.

                                      -

                                      Inserts the elements in lines into the document, starting at the row index given by row. This method also triggers the 'change' event.

                                      -

                                         

                                      Arguments

                                      rowNumberRequired. The index of the row to insert at
                                      linesArrayRequired. An array of strings

                                      Inserts a new line into the document at the current row's position. This method also triggers the 'change' event.

                                      -

                                      Inserts a new line into the document at the current row's position. This method also triggers the 'change' event.

                                      -

                                         

                                      Arguments

                                      positionStringRequired. The position to insert at

                                      Returns true if text is a newline character (either \r\n, \r, or \n).

                                      -

                                      Returns true if text is a newline character (either \r\n, \r, or \n).

                                      -

                                         

                                      Arguments

                                      textStringRequired. The text to check

                                      Removes the range from the document.

                                      -

                                      Removes the range from the document.

                                      -

                                         

                                      Arguments

                                      rangeRangeRequired. A specified Range to remove

                                      Removes the specified columns from the row. This method also triggers the 'change' event.

                                      -

                                      Removes the specified columns from the row. This method also triggers the 'change' event.

                                      -

                                         

                                      Arguments

                                      rowNumberRequired. The row to remove from
                                      startColumnNumberRequired. The column to start removing at
                                      endColumnNumberRequired. The column to stop removing at

                                      Removes a range of full lines. This method also triggers the 'change' event.

                                      -

                                      Removes a range of full lines. This method also triggers the 'change' event.

                                      -

                                         

                                      Arguments

                                      firstRowNumberRequired. The first row to be removed
                                      lastRowNumberRequired. The last row to be removed
                                        • Document.removeNewLine(Number row)
                                          • Void

                                        Removes the new line between row and the row immediately following it. This method also triggers the 'change' event.

                                        -

                                        Removes the new line between row and the row immediately following it. This method also triggers the 'change' event.

                                        -

                                           

                                        Arguments

                                        rowNumberRequired. The row to check

                                        Replaces a range in the document with the new text.

                                        -

                                        Replaces a range in the document with the new text.

                                        -

                                           

                                        Arguments

                                        rangeRangeRequired. A specified Range to replace
                                        textStringRequired. The new text to use as a replacement
                                          • Document.revertDeltas(deltas)
                                            • Void

                                          Reverts any changes previously applied. These can be either 'includeText', 'insertLines', 'removeText', and 'removeLines'.

                                          -

                                          Reverts any changes previously applied. These can be either 'includeText', 'insertLines', 'removeText', and 'removeLines'.

                                          -

                                             

                                            • Document.setNewLineMode(String newLineMode)
                                              • Void

                                            Sets the new line mode.

                                            -

                                            Sets the new line mode.

                                            -

                                               

                                            Arguments

                                            newLineModeStringRequired. The newline mode to use; can be either windows, unix, or auto
                                              • Document.setValue(String text)
                                                • Void

                                              Replaces all the lines in the current Document with the value of text.

                                              -

                                              Replaces all the lines in the current Document with the value of text.

                                              -

                                                 

                                              Arguments

                                              textStringRequired. The text to use
                                              +

                                              Constructors

                                              Creates a new Document. If text is included, the Document contains those strings; otherwise, it's empty.

                                              +

                                                 

                                              Creates a new Document. If text is included, the Document contains those strings; otherwise, it's empty.

                                              +

                                              Arguments

                                              textString | ArrayRequired. The starting text

                                              Methods

                                                • Document.$clipPosition(position)
                                                • Internal

                                                 

                                                • Document.$detectNewLine(text)
                                                  • Void
                                                • Internal

                                                 

                                              Splits a string of text on any newline (\n) or carriage-return ('\r') characters.

                                              +

                                                 

                                              Splits a string of text on any newline (\n) or carriage-return ('\r') characters.

                                              +

                                              Arguments

                                              textStringRequired. The text to work with
                                                • Document.applyDeltas(deltas)
                                                  • Void

                                                Applies all the changes previously accumulated. These can be either 'includeText', 'insertLines', 'removeText', and 'removeLines'.

                                                +

                                                   

                                                Applies all the changes previously accumulated. These can be either 'includeText', 'insertLines', 'removeText', and 'removeLines'.

                                                +

                                                Creates a new Anchor to define a floating point in the document.

                                                +

                                                   

                                                Creates a new Anchor to define a floating point in the document.

                                                +

                                                Arguments

                                                rowNumberRequired. The row number to use
                                                columnNumberRequired. The column number to use
                                                  • Document.getAllLines()

                                                  Returns all lines in the document as string array. Warning: The caller should not modify this array!

                                                  +

                                                     

                                                  Returns all lines in the document as string array. Warning: The caller should not modify this array!

                                                  +

                                                  Returns the number of rows in the document.

                                                  +

                                                     

                                                  Returns the number of rows in the document.

                                                  +

                                                  Returns a verbatim copy of the given line as it is in the document

                                                  +

                                                     

                                                  Returns a verbatim copy of the given line as it is in the document

                                                  +

                                                  Arguments

                                                  rowNumberRequired. The row index to retrieve

                                                  Returns an array of strings of the rows between firstRow and lastRow. This function is inclusive of lastRow.

                                                  +

                                                     

                                                  Returns an array of strings of the rows between firstRow and lastRow. This function is inclusive of lastRow.

                                                  +

                                                  Arguments

                                                  firstRowNumberRequired. The first row index to retrieve
                                                  lastRowNumberRequired. The final row index to retrieve
                                                    • Document.getNewLineCharacter()

                                                    Returns the newline character that's being used, depending on the value of newLineMode.

                                                    +

                                                       

                                                    Returns the newline character that's being used, depending on the value of newLineMode.

                                                    +
                                                      • Document.getNewLineMode()

                                                      Returns the type of newlines being used; either windows, unix, or auto

                                                      +

                                                         

                                                      Returns the type of newlines being used; either windows, unix, or auto

                                                      +

                                                      Given a range within the document, this function returns all the text within that range as a single string.

                                                      +

                                                         

                                                      Given a range within the document, this function returns all the text within that range as a single string.

                                                      +

                                                      Arguments

                                                      rangeRangeRequired. The range to work with

                                                      Returns all the lines in the document as a single string, split by the new line character.

                                                      +

                                                         

                                                      Returns all the lines in the document as a single string, split by the new line character.

                                                      +

                                                         

                                                      Arguments

                                                      positionNumberRequired. The position to start inserting at
                                                      textStringRequired. A chunk of text to insert

                                                      Inserts text into the position at the current row. This method also triggers the 'change' event.

                                                      +

                                                         

                                                      Inserts text into the position at the current row. This method also triggers the 'change' event.

                                                      +

                                                      Arguments

                                                      positionNumberRequired. The position to insert at
                                                      textStringRequired. A chunk of text

                                                      Inserts the elements in lines into the document, starting at the row index given by row. This method also triggers the 'change' event.

                                                      +

                                                         

                                                      Inserts the elements in lines into the document, starting at the row index given by row. This method also triggers the 'change' event.

                                                      +

                                                      Arguments

                                                      rowNumberRequired. The index of the row to insert at
                                                      linesArrayRequired. An array of strings

                                                      Inserts a new line into the document at the current row's position. This method also triggers the 'change' event.

                                                      +

                                                         

                                                      Inserts a new line into the document at the current row's position. This method also triggers the 'change' event.

                                                      +

                                                      Arguments

                                                      positionStringRequired. The position to insert at

                                                      Returns true if text is a newline character (either \r\n, \r, or \n).

                                                      +

                                                         

                                                      Returns true if text is a newline character (either \r\n, \r, or \n).

                                                      +

                                                      Arguments

                                                      textStringRequired. The text to check

                                                      Removes the range from the document.

                                                      +

                                                         

                                                      Removes the range from the document.

                                                      +

                                                      Arguments

                                                      rangeRangeRequired. A specified Range to remove

                                                      Removes the specified columns from the row. This method also triggers the 'change' event.

                                                      +

                                                         

                                                      Removes the specified columns from the row. This method also triggers the 'change' event.

                                                      +

                                                      Arguments

                                                      rowNumberRequired. The row to remove from
                                                      startColumnNumberRequired. The column to start removing at
                                                      endColumnNumberRequired. The column to stop removing at

                                                      Removes a range of full lines. This method also triggers the 'change' event.

                                                      +

                                                         

                                                      Removes a range of full lines. This method also triggers the 'change' event.

                                                      +

                                                      Arguments

                                                      firstRowNumberRequired. The first row to be removed
                                                      lastRowNumberRequired. The last row to be removed
                                                        • Document.removeNewLine(Number row)
                                                          • Void

                                                        Removes the new line between row and the row immediately following it. This method also triggers the 'change' event.

                                                        +

                                                           

                                                        Removes the new line between row and the row immediately following it. This method also triggers the 'change' event.

                                                        +

                                                        Arguments

                                                        rowNumberRequired. The row to check

                                                        Replaces a range in the document with the new text.

                                                        +

                                                           

                                                        Replaces a range in the document with the new text.

                                                        +

                                                        Arguments

                                                        rangeRangeRequired. A specified Range to replace
                                                        textStringRequired. The new text to use as a replacement
                                                          • Document.revertDeltas(deltas)
                                                            • Void

                                                          Reverts any changes previously applied. These can be either 'includeText', 'insertLines', 'removeText', and 'removeLines'.

                                                          +

                                                             

                                                          Reverts any changes previously applied. These can be either 'includeText', 'insertLines', 'removeText', and 'removeLines'.

                                                          +
                                                            • Document.setNewLineMode(String newLineMode)
                                                              • Void

                                                            Sets the new line mode.

                                                            +

                                                               

                                                            Sets the new line mode.

                                                            +

                                                            Arguments

                                                            newLineModeStringRequired. The newline mode to use; can be either windows, unix, or auto
                                                              • Document.setValue(String text)
                                                                • Void

                                                              Replaces all the lines in the current Document with the value of text.

                                                              +

                                                                 

                                                              Replaces all the lines in the current Document with the value of text.

                                                              +

                                                              Arguments

                                                              textStringRequired. The text to use
                                                              diff --git a/api/edit_session.html b/api/edit_session.html index 8719015a..d924a865 100644 --- a/api/edit_session.html +++ b/api/edit_session.html @@ -2,179 +2,177 @@ EditSession - Ace API

                                                              Stores all the data about Editor state providing easy way to change editors state. EditSession can be attached to only one Document. Same Document can be attached to several EditSessions.

                                                              -

                                                              Constructors

                                                              Sets up a new EditSession and associates it with the given Document and TextMode.

                                                              -

                                                              Sets up a new EditSession and associates it with the given Document and TextMode.

                                                              -

                                                                 

                                                              Arguments

                                                              textDocument | StringRequired. If text is a Document, it associates the EditSession with it. Otherwise, a new Document is created, with the initial text
                                                              modeTextModeRequired. The inital language mode to use for the document

                                                              Events

                                                                • EditSession.on("change", function(e))

                                                                Emitted when the document changes.

                                                                -

                                                                Emitted when the document changes.

                                                                -

                                                                   

                                                                  • EditSession.on("changeFold", function(e))

                                                                  Emitted when a code fold added or removed.

                                                                  -

                                                                  Emitted when a code fold added or removed.

                                                                  -

                                                                     

                                                                    • EditSession.on("changeScrollLeft", function())

                                                                    Emitted when the scroll left changes.

                                                                    -

                                                                    Emitted when the scroll left changes.

                                                                    -

                                                                       

                                                                      • EditSession.on("changeScrollTop", function())

                                                                      Emitted when the scroll top changes.

                                                                      -

                                                                      Emitted when the scroll top changes.

                                                                      -

                                                                         

                                                                        • EditSession.on("tokenizerUpdate", function(e))

                                                                        Emitted when a background tokenizer asynchronousely processes new rows.

                                                                        -

                                                                        Emitted when a background tokenizer asynchronousely processes new rows.

                                                                        -

                                                                           

                                                                        Methods

                                                                          • EditSession.$computeWrapSplits(tokens, wrapLimit)
                                                                          • Internal

                                                                           

                                                                          • EditSession.$constrainWrapLimit(wrapLimit)
                                                                          • Internal

                                                                           

                                                                          • EditSession.$detectNewLine(String text)
                                                                          • Internal

                                                                        If text contains either the newline (\n) or carriage-return ('\r') characters, $autoNewLine stores that value.

                                                                        -

                                                                        If text contains either the newline (\n) or carriage-return ('\r') characters, $autoNewLine stores that value.

                                                                        -

                                                                           

                                                                        Arguments

                                                                        textStringRequired. A block of text

                                                                        Given a string, returns an array of the display characters, including tabs and spaces.

                                                                        -

                                                                        Given a string, returns an array of the display characters, including tabs and spaces.

                                                                        -

                                                                           

                                                                        Arguments

                                                                        strStringRequired. The string to check
                                                                        offsetNumberRequired. The value to start at

                                                                        Calculates the width of the string str on the screen while assuming that the string starts at the first column on the screen.

                                                                        -

                                                                        Calculates the width of the string str on the screen while assuming that the string starts at the first column on the screen.

                                                                        -

                                                                           

                                                                        Arguments

                                                                        strStringRequired. The string to calculate the screen width of
                                                                        maxScreenColumnNumberRequired.
                                                                        screenColumnNumberRequired.
                                                                          • EditSession.$getUndoSelection(deltas, isUndo, lastUndoRange)
                                                                          • Internal

                                                                           

                                                                          • EditSession.$resetRowCache(Number row)
                                                                          • Internal

                                                                           

                                                                        Arguments

                                                                        rowNumberRequired. The row to work with
                                                                          • EditSession.$startWorker()
                                                                          • Internal

                                                                           

                                                                          • EditSession.$syncInformUndoManager()
                                                                          • Internal

                                                                           

                                                                          • EditSession.$updateInternalDataOnChange()
                                                                          • Internal

                                                                           

                                                                          • EditSession.$updateWrapData(firstRow, lastRow)
                                                                          • Internal

                                                                           

                                                                        Adds a dynamic marker to the session.

                                                                        -

                                                                        Adds a dynamic marker to the session.

                                                                        -

                                                                           

                                                                        Arguments

                                                                        markerObjectRequired. object with update method
                                                                        inFrontBooleanRequired. Set to true to establish a front marker
                                                                          • EditSession.addGutterDecoration(Number row, String className)
                                                                            • Void

                                                                          Adds className to the row, to be used for CSS stylings and whatnot.

                                                                          -

                                                                          Adds className to the row, to be used for CSS stylings and whatnot.

                                                                          -

                                                                             

                                                                          Arguments

                                                                          rowNumberRequired. The row number
                                                                          classNameStringRequired. The class to add

                                                                          Adds a new marker to the given Range. If inFront is true, a front marker is defined, and the 'changeFrontMarker' event fires; otherwise, the 'changeBackMarker' event fires.

                                                                          -

                                                                          Adds a new marker to the given Range. If inFront is true, a front marker is defined, and the 'changeFrontMarker' event fires; otherwise, the 'changeBackMarker' event fires.

                                                                          -

                                                                             

                                                                          Arguments

                                                                          rangeRangeRequired. Define the range of the marker
                                                                          clazzStringRequired. Set the CSS class for the marker
                                                                          typeFunction | StringRequired. Identify the type of the marker
                                                                          inFrontBooleanRequired. Set to true to establish a front marker

                                                                          This should generally only be called by the renderer when a resize is detected.

                                                                          -

                                                                          This should generally only be called by the renderer when a resize is detected.

                                                                          -

                                                                             

                                                                          Arguments

                                                                          desiredLimitNumberRequired. The new wrap limit
                                                                            • EditSession.clearAnnotations()

                                                                            Clears all the annotations for this session. This function also triggers the 'changeAnnotation' event.

                                                                            -

                                                                            Clears all the annotations for this session. This function also triggers the 'changeAnnotation' event.

                                                                            -

                                                                               

                                                                              • EditSession.clearBreakpoint(Number row)

                                                                              Removes a breakpoint on the row number given by rows. This function also emites the 'changeBreakpoint' event.

                                                                              -

                                                                              Removes a breakpoint on the row number given by rows. This function also emites the 'changeBreakpoint' event.

                                                                              -

                                                                                 

                                                                              Arguments

                                                                              rowNumberRequired. A row index
                                                                                • EditSession.clearBreakpoints()

                                                                                Removes all breakpoints on the rows. This function also emites the 'changeBreakpoint' event.

                                                                                -

                                                                                Removes all breakpoints on the rows. This function also emites the 'changeBreakpoint' event.

                                                                                -

                                                                                   

                                                                                  • EditSession.documentToScreenColumn(row, docColumn)
                                                                                  • Internal

                                                                                   

                                                                                Converts document coordinates to screen coordinates. This takes into account code folding, word wrap, tab size, and any other visual modifications.

                                                                                -

                                                                                Converts document coordinates to screen coordinates. This takes into account code folding, word wrap, tab size, and any other visual modifications.

                                                                                -

                                                                                   

                                                                                Arguments

                                                                                docRowNumberRequired. The document row to check
                                                                                docColumnNumberRequired. The document column to check
                                                                                  • EditSession.documentToScreenRow(docRow, docColumn)
                                                                                  • Internal

                                                                                   

                                                                                Duplicates all the text between firstRow and lastRow.

                                                                                -

                                                                                Duplicates all the text between firstRow and lastRow.

                                                                                -

                                                                                   

                                                                                Arguments

                                                                                firstRowNumberRequired. The starting row to duplicate
                                                                                lastRowNumberRequired. The final row to duplicate
                                                                                  • EditSession.getAnnotations()

                                                                                  Returns the annotations for the EditSession.

                                                                                  -

                                                                                  Returns the annotations for the EditSession.

                                                                                  -

                                                                                     

                                                                                  Gets the range of a word, including its right whitespace.

                                                                                  -

                                                                                  Gets the range of a word, including its right whitespace.

                                                                                  -

                                                                                     

                                                                                  Arguments

                                                                                  rowNumberRequired. The row number to start from
                                                                                  columnNumberRequired. The column number to start from
                                                                                    • EditSession.getBreakpoints()

                                                                                    Returns an array of numbers, indicating which rows have breakpoints.

                                                                                    -

                                                                                    Returns an array of numbers, indicating which rows have breakpoints.

                                                                                    -

                                                                                       

                                                                                    Returns the Document associated with this session.

                                                                                    -

                                                                                    Returns the Document associated with this session.

                                                                                    -

                                                                                       

                                                                                      • EditSession.getDocumentLastRowColumnPosition(docRow, docColumn)
                                                                                      • Internal

                                                                                       

                                                                                    Returns the number of rows in the document.

                                                                                    -

                                                                                    Returns the number of rows in the document.

                                                                                    -

                                                                                       

                                                                                    Returns a verbatim copy of the given line as it is in the document

                                                                                    -

                                                                                    Returns a verbatim copy of the given line as it is in the document

                                                                                    -

                                                                                       

                                                                                    Arguments

                                                                                    rowNumberRequired. The row to retrieve from

                                                                                    Returns an array of strings of the rows between firstRow and lastRow. This function is inclusive of lastRow.

                                                                                    -

                                                                                    Returns an array of strings of the rows between firstRow and lastRow. This function is inclusive of lastRow.

                                                                                    -

                                                                                       

                                                                                    Arguments

                                                                                    firstRowNumberRequired. The first row index to retrieve
                                                                                    lastRowNumberRequired. The final row index to retrieve

                                                                                    Returns an array containing the IDs of all the markers, either front or back.

                                                                                    -

                                                                                    Returns an array containing the IDs of all the markers, either front or back.

                                                                                    -

                                                                                       

                                                                                    Arguments

                                                                                    inFrontBooleanRequired. If true, indicates you only want front markers; false indicates only back markers

                                                                                    Returns the current text mode.

                                                                                    -

                                                                                    Returns the current text mode.

                                                                                    -

                                                                                       

                                                                                    Returns the current new line mode.

                                                                                    -

                                                                                    Returns the current new line mode.

                                                                                    -

                                                                                       

                                                                                    Returns true if overwrites are enabled; false otherwise.

                                                                                    -

                                                                                    Returns true if overwrites are enabled; false otherwise.

                                                                                    -

                                                                                       

                                                                                    Returns number of screenrows in a wrapped line.

                                                                                    -

                                                                                    Returns number of screenrows in a wrapped line.

                                                                                    -

                                                                                       

                                                                                    Arguments

                                                                                    rowNumberRequired. The row number to check
                                                                                      • EditSession.getRowSplitData(row)
                                                                                      • Internal

                                                                                       

                                                                                    Returns the column position (on screen) for the last character in the provided row.

                                                                                    -

                                                                                    Returns the column position (on screen) for the last character in the provided row.

                                                                                    -

                                                                                       

                                                                                    Arguments

                                                                                    screenRowNumberRequired. The screen row to check
                                                                                      • EditSession.getScreenLength()

                                                                                      Returns the length of the screen.

                                                                                      -

                                                                                      Returns the length of the screen.

                                                                                      -

                                                                                         

                                                                                      The distance to the next tab stop at the specified screen column.

                                                                                      -

                                                                                      The distance to the next tab stop at the specified screen column.

                                                                                      -

                                                                                         

                                                                                      Arguments

                                                                                      screenColumnNumberRequired. The screen column to check
                                                                                        • EditSession.getScreenWidth()

                                                                                        Returns the width of the screen.

                                                                                        -

                                                                                        Returns the width of the screen.

                                                                                        -

                                                                                           

                                                                                          • EditSession.getScrollLeft()

                                                                                          Returns the value of the distance between the left of the editor and the leftmost part of the visible content.

                                                                                          -

                                                                                          Returns the value of the distance between the left of the editor and the leftmost part of the visible content.

                                                                                          -

                                                                                             

                                                                                            • EditSession.getScrollTop()

                                                                                            Returns the value of the distance between the top of the editor and the topmost part of the visible content.

                                                                                            -

                                                                                            Returns the value of the distance between the top of the editor and the topmost part of the visible content.

                                                                                            -

                                                                                               

                                                                                              • EditSession.getSelection()

                                                                                              Returns the string of the current selection.

                                                                                              -

                                                                                              Returns the string of the current selection.

                                                                                              -

                                                                                                 

                                                                                              Returns the state of tokenization at the end of a row.

                                                                                              -

                                                                                              Returns the state of tokenization at the end of a row.

                                                                                              -

                                                                                                 

                                                                                              Arguments

                                                                                              rowNumberRequired. The row to start at
                                                                                                • EditSession.getTabSize()

                                                                                                Returns the current tab size.

                                                                                                -

                                                                                                Returns the current tab size.

                                                                                                -

                                                                                                   

                                                                                                  • EditSession.getTabString()

                                                                                                  Returns the current value for tabs. If the user is using soft tabs, this will be a series of spaces (defined by getTabSize); otherwise it's simply '\t'.

                                                                                                  -

                                                                                                  Returns the current value for tabs. If the user is using soft tabs, this will be a series of spaces (defined by getTabSize); otherwise it's simply '\t'.

                                                                                                  -

                                                                                                     

                                                                                                  Given a range within the document, this function returns all the text within that range as a single string.

                                                                                                  -

                                                                                                  Given a range within the document, this function returns all the text within that range as a single string.

                                                                                                  -

                                                                                                     

                                                                                                  Arguments

                                                                                                  rangeStringRequired. The range to work with

                                                                                                  Returns an array of tokens at the indicated row and column.

                                                                                                  -

                                                                                                  Returns an array of tokens at the indicated row and column.

                                                                                                  -

                                                                                                     

                                                                                                  Arguments

                                                                                                  rowNumberRequired. The row number to retrieve from
                                                                                                  columnNumberRequired. The column number to retrieve from

                                                                                                  Starts tokenizing at the row indicated. Returns a list of objects of the tokenized rows.

                                                                                                  -

                                                                                                  Starts tokenizing at the row indicated. Returns a list of objects of the tokenized rows.

                                                                                                  -

                                                                                                     

                                                                                                  Arguments

                                                                                                  rowNumberRequired. The row to start at

                                                                                                  Returns the current undo manager.

                                                                                                  -

                                                                                                  Returns the current undo manager.

                                                                                                  -

                                                                                                     

                                                                                                    • EditSession.getUseSoftTabs()

                                                                                                    Returns true if soft tabs are being used, false otherwise.

                                                                                                    -

                                                                                                    Returns true if soft tabs are being used, false otherwise.

                                                                                                    -

                                                                                                       

                                                                                                    Returns true if workers are being used.

                                                                                                    -

                                                                                                    Returns true if workers are being used.

                                                                                                    -

                                                                                                       

                                                                                                      • EditSession.getUseWrapMode()

                                                                                                      Returns true if wrap mode is being used; false otherwise.

                                                                                                      -

                                                                                                      Returns true if wrap mode is being used; false otherwise.

                                                                                                      -

                                                                                                         

                                                                                                      Given a starting row and column, this method returns the Range of the first word boundary it finds.

                                                                                                      -

                                                                                                      Given a starting row and column, this method returns the Range of the first word boundary it finds.

                                                                                                      -

                                                                                                         

                                                                                                      Arguments

                                                                                                      rowNumberRequired. The row to start at
                                                                                                      columnNumberRequired. The column to start at
                                                                                                        • EditSession.getWrapLimit()

                                                                                                        Returns the value of wrap limit.

                                                                                                        -

                                                                                                        Returns the value of wrap limit.

                                                                                                        -

                                                                                                           

                                                                                                          • EditSession.getWrapLimitRange()

                                                                                                          Returns an object that defines the minimum and maximum of the wrap limit; it looks something like this:

                                                                                                          -

                                                                                                          Returns an object that defines the minimum and maximum of the wrap limit; it looks something like this:

                                                                                                          +

                                                                                                          Constructors

                                                                                                          Sets up a new EditSession and associates it with the given Document and TextMode.

                                                                                                          +

                                                                                                             

                                                                                                          Sets up a new EditSession and associates it with the given Document and TextMode.

                                                                                                          +

                                                                                                          Arguments

                                                                                                          textDocument | StringRequired. If text is a Document, it associates the EditSession with it. Otherwise, a new Document is created, with the initial text
                                                                                                          modeTextModeRequired. The inital language mode to use for the document

                                                                                                          Events

                                                                                                            • EditSession.on("change", function(e))

                                                                                                            Emitted when the document changes.

                                                                                                            +

                                                                                                               

                                                                                                            Emitted when the document changes.

                                                                                                            +
                                                                                                              • EditSession.on("changeFold", function(e))

                                                                                                              Emitted when a code fold added or removed.

                                                                                                              +

                                                                                                                 

                                                                                                              Emitted when a code fold added or removed.

                                                                                                              +
                                                                                                                • EditSession.on("changeScrollLeft", function())

                                                                                                                Emitted when the scroll left changes.

                                                                                                                +

                                                                                                                   

                                                                                                                Emitted when the scroll left changes.

                                                                                                                +
                                                                                                                  • EditSession.on("changeScrollTop", function())

                                                                                                                  Emitted when the scroll top changes.

                                                                                                                  +

                                                                                                                     

                                                                                                                  Emitted when the scroll top changes.

                                                                                                                  +
                                                                                                                    • EditSession.on("tokenizerUpdate", function(e))

                                                                                                                    Emitted when a background tokenizer asynchronousely processes new rows.

                                                                                                                    +

                                                                                                                       

                                                                                                                    Emitted when a background tokenizer asynchronousely processes new rows.

                                                                                                                    +

                                                                                                                    Methods

                                                                                                                      • EditSession.$computeWrapSplits(tokens, wrapLimit)
                                                                                                                      • Internal

                                                                                                                       

                                                                                                                      • EditSession.$constrainWrapLimit(wrapLimit)
                                                                                                                      • Internal

                                                                                                                       

                                                                                                                      • EditSession.$detectNewLine(String text)
                                                                                                                      • Internal

                                                                                                                    If text contains either the newline (\n) or carriage-return ('\r') characters, $autoNewLine stores that value.

                                                                                                                    +

                                                                                                                       

                                                                                                                    If text contains either the newline (\n) or carriage-return ('\r') characters, $autoNewLine stores that value.

                                                                                                                    +

                                                                                                                    Arguments

                                                                                                                    textStringRequired. A block of text

                                                                                                                    Given a string, returns an array of the display characters, including tabs and spaces.

                                                                                                                    +

                                                                                                                       

                                                                                                                    Given a string, returns an array of the display characters, including tabs and spaces.

                                                                                                                    +

                                                                                                                    Arguments

                                                                                                                    strStringRequired. The string to check
                                                                                                                    offsetNumberRequired. The value to start at

                                                                                                                    Calculates the width of the string str on the screen while assuming that the string starts at the first column on the screen.

                                                                                                                    +

                                                                                                                       

                                                                                                                    Calculates the width of the string str on the screen while assuming that the string starts at the first column on the screen.

                                                                                                                    +

                                                                                                                    Arguments

                                                                                                                    strStringRequired. The string to calculate the screen width of
                                                                                                                    maxScreenColumnNumberRequired.
                                                                                                                    screenColumnNumberRequired.
                                                                                                                      • EditSession.$getUndoSelection(deltas, isUndo, lastUndoRange)
                                                                                                                      • Internal

                                                                                                                       

                                                                                                                      • EditSession.$resetRowCache(Number row)
                                                                                                                      • Internal

                                                                                                                       

                                                                                                                    Arguments

                                                                                                                    rowNumberRequired. The row to work with
                                                                                                                      • EditSession.$startWorker()
                                                                                                                      • Internal

                                                                                                                       

                                                                                                                      • EditSession.$syncInformUndoManager()
                                                                                                                      • Internal

                                                                                                                       

                                                                                                                      • EditSession.$updateInternalDataOnChange()
                                                                                                                      • Internal

                                                                                                                       

                                                                                                                      • EditSession.$updateWrapData(firstRow, lastRow)
                                                                                                                      • Internal

                                                                                                                       

                                                                                                                    Adds a dynamic marker to the session.

                                                                                                                    +

                                                                                                                       

                                                                                                                    Adds a dynamic marker to the session.

                                                                                                                    +

                                                                                                                    Arguments

                                                                                                                    markerObjectRequired. object with update method
                                                                                                                    inFrontBooleanRequired. Set to true to establish a front marker
                                                                                                                      • EditSession.addGutterDecoration(Number row, String className)
                                                                                                                        • Void

                                                                                                                      Adds className to the row, to be used for CSS stylings and whatnot.

                                                                                                                      +

                                                                                                                         

                                                                                                                      Adds className to the row, to be used for CSS stylings and whatnot.

                                                                                                                      +

                                                                                                                      Arguments

                                                                                                                      rowNumberRequired. The row number
                                                                                                                      classNameStringRequired. The class to add

                                                                                                                      Adds a new marker to the given Range. If inFront is true, a front marker is defined, and the 'changeFrontMarker' event fires; otherwise, the 'changeBackMarker' event fires.

                                                                                                                      +

                                                                                                                         

                                                                                                                      Adds a new marker to the given Range. If inFront is true, a front marker is defined, and the 'changeFrontMarker' event fires; otherwise, the 'changeBackMarker' event fires.

                                                                                                                      +

                                                                                                                      Arguments

                                                                                                                      rangeRangeRequired. Define the range of the marker
                                                                                                                      clazzStringRequired. Set the CSS class for the marker
                                                                                                                      typeFunction | StringRequired. Identify the type of the marker
                                                                                                                      inFrontBooleanRequired. Set to true to establish a front marker

                                                                                                                      This should generally only be called by the renderer when a resize is detected.

                                                                                                                      +

                                                                                                                         

                                                                                                                      This should generally only be called by the renderer when a resize is detected.

                                                                                                                      +

                                                                                                                      Arguments

                                                                                                                      desiredLimitNumberRequired. The new wrap limit
                                                                                                                        • EditSession.clearAnnotations()

                                                                                                                        Clears all the annotations for this session. This function also triggers the 'changeAnnotation' event.

                                                                                                                        +

                                                                                                                           

                                                                                                                        Clears all the annotations for this session. This function also triggers the 'changeAnnotation' event.

                                                                                                                        +
                                                                                                                          • EditSession.clearBreakpoint(Number row)

                                                                                                                          Removes a breakpoint on the row number given by rows. This function also emites the 'changeBreakpoint' event.

                                                                                                                          +

                                                                                                                             

                                                                                                                          Removes a breakpoint on the row number given by rows. This function also emites the 'changeBreakpoint' event.

                                                                                                                          +

                                                                                                                          Arguments

                                                                                                                          rowNumberRequired. A row index
                                                                                                                            • EditSession.clearBreakpoints()

                                                                                                                            Removes all breakpoints on the rows. This function also emites the 'changeBreakpoint' event.

                                                                                                                            +

                                                                                                                               

                                                                                                                            Removes all breakpoints on the rows. This function also emites the 'changeBreakpoint' event.

                                                                                                                            +
                                                                                                                              • EditSession.documentToScreenColumn(row, docColumn)
                                                                                                                              • Internal

                                                                                                                               

                                                                                                                            Converts document coordinates to screen coordinates. This takes into account code folding, word wrap, tab size, and any other visual modifications.

                                                                                                                            +

                                                                                                                               

                                                                                                                            Converts document coordinates to screen coordinates. This takes into account code folding, word wrap, tab size, and any other visual modifications.

                                                                                                                            +

                                                                                                                            Arguments

                                                                                                                            docRowNumberRequired. The document row to check
                                                                                                                            docColumnNumberRequired. The document column to check
                                                                                                                              • EditSession.documentToScreenRow(docRow, docColumn)
                                                                                                                              • Internal

                                                                                                                               

                                                                                                                            Duplicates all the text between firstRow and lastRow.

                                                                                                                            +

                                                                                                                               

                                                                                                                            Duplicates all the text between firstRow and lastRow.

                                                                                                                            +

                                                                                                                            Arguments

                                                                                                                            firstRowNumberRequired. The starting row to duplicate
                                                                                                                            lastRowNumberRequired. The final row to duplicate
                                                                                                                              • EditSession.getAnnotations()

                                                                                                                              Returns the annotations for the EditSession.

                                                                                                                              +

                                                                                                                                 

                                                                                                                              Returns the annotations for the EditSession.

                                                                                                                              +

                                                                                                                              Gets the range of a word, including its right whitespace.

                                                                                                                              +

                                                                                                                                 

                                                                                                                              Gets the range of a word, including its right whitespace.

                                                                                                                              +

                                                                                                                              Arguments

                                                                                                                              rowNumberRequired. The row number to start from
                                                                                                                              columnNumberRequired. The column number to start from
                                                                                                                                • EditSession.getBreakpoints()

                                                                                                                                Returns an array of numbers, indicating which rows have breakpoints.

                                                                                                                                +

                                                                                                                                   

                                                                                                                                Returns an array of numbers, indicating which rows have breakpoints.

                                                                                                                                +

                                                                                                                                Returns the Document associated with this session.

                                                                                                                                +

                                                                                                                                   

                                                                                                                                Returns the Document associated with this session.

                                                                                                                                +
                                                                                                                                  • EditSession.getDocumentLastRowColumnPosition(docRow, docColumn)
                                                                                                                                  • Internal

                                                                                                                                   

                                                                                                                                Returns the number of rows in the document.

                                                                                                                                +

                                                                                                                                   

                                                                                                                                Returns the number of rows in the document.

                                                                                                                                +

                                                                                                                                Returns a verbatim copy of the given line as it is in the document

                                                                                                                                +

                                                                                                                                   

                                                                                                                                Returns a verbatim copy of the given line as it is in the document

                                                                                                                                +

                                                                                                                                Arguments

                                                                                                                                rowNumberRequired. The row to retrieve from

                                                                                                                                Returns an array of strings of the rows between firstRow and lastRow. This function is inclusive of lastRow.

                                                                                                                                +

                                                                                                                                   

                                                                                                                                Returns an array of strings of the rows between firstRow and lastRow. This function is inclusive of lastRow.

                                                                                                                                +

                                                                                                                                Arguments

                                                                                                                                firstRowNumberRequired. The first row index to retrieve
                                                                                                                                lastRowNumberRequired. The final row index to retrieve

                                                                                                                                Returns an array containing the IDs of all the markers, either front or back.

                                                                                                                                +

                                                                                                                                   

                                                                                                                                Returns an array containing the IDs of all the markers, either front or back.

                                                                                                                                +

                                                                                                                                Arguments

                                                                                                                                inFrontBooleanRequired. If true, indicates you only want front markers; false indicates only back markers

                                                                                                                                Returns the current text mode.

                                                                                                                                +

                                                                                                                                   

                                                                                                                                Returns the current text mode.

                                                                                                                                +

                                                                                                                                Returns the current new line mode.

                                                                                                                                +

                                                                                                                                   

                                                                                                                                Returns the current new line mode.

                                                                                                                                +

                                                                                                                                Returns true if overwrites are enabled; false otherwise.

                                                                                                                                +

                                                                                                                                   

                                                                                                                                Returns true if overwrites are enabled; false otherwise.

                                                                                                                                +

                                                                                                                                Returns number of screenrows in a wrapped line.

                                                                                                                                +

                                                                                                                                   

                                                                                                                                Returns number of screenrows in a wrapped line.

                                                                                                                                +

                                                                                                                                Arguments

                                                                                                                                rowNumberRequired. The row number to check
                                                                                                                                  • EditSession.getRowSplitData(row)
                                                                                                                                  • Internal

                                                                                                                                   

                                                                                                                                Returns the column position (on screen) for the last character in the provided row.

                                                                                                                                +

                                                                                                                                   

                                                                                                                                Returns the column position (on screen) for the last character in the provided row.

                                                                                                                                +

                                                                                                                                Arguments

                                                                                                                                screenRowNumberRequired. The screen row to check
                                                                                                                                  • EditSession.getScreenLength()

                                                                                                                                  Returns the length of the screen.

                                                                                                                                  +

                                                                                                                                     

                                                                                                                                  Returns the length of the screen.

                                                                                                                                  +

                                                                                                                                  The distance to the next tab stop at the specified screen column.

                                                                                                                                  +

                                                                                                                                     

                                                                                                                                  The distance to the next tab stop at the specified screen column.

                                                                                                                                  +

                                                                                                                                  Arguments

                                                                                                                                  screenColumnNumberRequired. The screen column to check
                                                                                                                                    • EditSession.getScreenWidth()

                                                                                                                                    Returns the width of the screen.

                                                                                                                                    +

                                                                                                                                       

                                                                                                                                    Returns the width of the screen.

                                                                                                                                    +
                                                                                                                                      • EditSession.getScrollLeft()

                                                                                                                                      Returns the value of the distance between the left of the editor and the leftmost part of the visible content.

                                                                                                                                      +

                                                                                                                                         

                                                                                                                                      Returns the value of the distance between the left of the editor and the leftmost part of the visible content.

                                                                                                                                      +
                                                                                                                                        • EditSession.getScrollTop()

                                                                                                                                        Returns the value of the distance between the top of the editor and the topmost part of the visible content.

                                                                                                                                        +

                                                                                                                                           

                                                                                                                                        Returns the value of the distance between the top of the editor and the topmost part of the visible content.

                                                                                                                                        +
                                                                                                                                          • EditSession.getSelection()

                                                                                                                                          Returns the string of the current selection.

                                                                                                                                          +

                                                                                                                                             

                                                                                                                                          Returns the string of the current selection.

                                                                                                                                          +

                                                                                                                                          Returns the state of tokenization at the end of a row.

                                                                                                                                          +

                                                                                                                                             

                                                                                                                                          Returns the state of tokenization at the end of a row.

                                                                                                                                          +

                                                                                                                                          Arguments

                                                                                                                                          rowNumberRequired. The row to start at
                                                                                                                                            • EditSession.getTabSize()

                                                                                                                                            Returns the current tab size.

                                                                                                                                            +

                                                                                                                                               

                                                                                                                                            Returns the current tab size.

                                                                                                                                            +
                                                                                                                                              • EditSession.getTabString()

                                                                                                                                              Returns the current value for tabs. If the user is using soft tabs, this will be a series of spaces (defined by getTabSize); otherwise it's simply '\t'.

                                                                                                                                              +

                                                                                                                                                 

                                                                                                                                              Returns the current value for tabs. If the user is using soft tabs, this will be a series of spaces (defined by getTabSize); otherwise it's simply '\t'.

                                                                                                                                              +

                                                                                                                                              Given a range within the document, this function returns all the text within that range as a single string.

                                                                                                                                              +

                                                                                                                                                 

                                                                                                                                              Given a range within the document, this function returns all the text within that range as a single string.

                                                                                                                                              +

                                                                                                                                              Arguments

                                                                                                                                              rangeStringRequired. The range to work with

                                                                                                                                              Returns an array of tokens at the indicated row and column.

                                                                                                                                              +

                                                                                                                                                 

                                                                                                                                              Returns an array of tokens at the indicated row and column.

                                                                                                                                              +

                                                                                                                                              Arguments

                                                                                                                                              rowNumberRequired. The row number to retrieve from
                                                                                                                                              columnNumberRequired. The column number to retrieve from

                                                                                                                                              Starts tokenizing at the row indicated. Returns a list of objects of the tokenized rows.

                                                                                                                                              +

                                                                                                                                                 

                                                                                                                                              Starts tokenizing at the row indicated. Returns a list of objects of the tokenized rows.

                                                                                                                                              +

                                                                                                                                              Arguments

                                                                                                                                              rowNumberRequired. The row to start at

                                                                                                                                              Returns the current undo manager.

                                                                                                                                              +

                                                                                                                                                 

                                                                                                                                              Returns the current undo manager.

                                                                                                                                              +
                                                                                                                                                • EditSession.getUseSoftTabs()

                                                                                                                                                Returns true if soft tabs are being used, false otherwise.

                                                                                                                                                +

                                                                                                                                                   

                                                                                                                                                Returns true if soft tabs are being used, false otherwise.

                                                                                                                                                +

                                                                                                                                                Returns true if workers are being used.

                                                                                                                                                +

                                                                                                                                                   

                                                                                                                                                Returns true if workers are being used.

                                                                                                                                                +
                                                                                                                                                  • EditSession.getUseWrapMode()

                                                                                                                                                  Returns true if wrap mode is being used; false otherwise.

                                                                                                                                                  +

                                                                                                                                                     

                                                                                                                                                  Returns true if wrap mode is being used; false otherwise.

                                                                                                                                                  +

                                                                                                                                                  Given a starting row and column, this method returns the Range of the first word boundary it finds.

                                                                                                                                                  +

                                                                                                                                                     

                                                                                                                                                  Given a starting row and column, this method returns the Range of the first word boundary it finds.

                                                                                                                                                  +

                                                                                                                                                  Arguments

                                                                                                                                                  rowNumberRequired. The row to start at
                                                                                                                                                  columnNumberRequired. The column to start at
                                                                                                                                                    • EditSession.getWrapLimit()

                                                                                                                                                    Returns the value of wrap limit.

                                                                                                                                                    +

                                                                                                                                                       

                                                                                                                                                    Returns the value of wrap limit.

                                                                                                                                                    +
                                                                                                                                                      • EditSession.getWrapLimitRange()

                                                                                                                                                      Returns an object that defines the minimum and maximum of the wrap limit; it looks something like this:

                                                                                                                                                      +

                                                                                                                                                         

                                                                                                                                                      Returns an object that defines the minimum and maximum of the wrap limit; it looks something like this:

                                                                                                                                                      { min: wrapLimitRange_min, max: wrapLimitRange_max }
                                                                                                                                                      -

                                                                                                                                                         

                                                                                                                                                      { min: wrapLimitRange_min, max: wrapLimitRange_max }

                                                                                                                                                      Indents all the rows, from startRow to endRow (inclusive), by prefixing each row with the token in indentString.

                                                                                                                                                      -

                                                                                                                                                      Indents all the rows, from startRow to endRow (inclusive), by prefixing each row with the token in indentString.

                                                                                                                                                      +

                                                                                                                                                         

                                                                                                                                                      Indents all the rows, from startRow to endRow (inclusive), by prefixing each row with the token in indentString.

                                                                                                                                                      If indentString contains the '\t' character, it's replaced by whatever is defined by getTabString.

                                                                                                                                                      -

                                                                                                                                                         

                                                                                                                                                      If indentString contains the '\t' character, it's replaced by whatever is defined by getTabString.

                                                                                                                                                      Arguments

                                                                                                                                                      startRowNumberRequired. Starting row
                                                                                                                                                      endRowNumberRequired. Ending row
                                                                                                                                                      indentStringStringRequired. The indent token

                                                                                                                                                      Inserts a block of text and the indicated position.

                                                                                                                                                      -

                                                                                                                                                      Inserts a block of text and the indicated position.

                                                                                                                                                      -

                                                                                                                                                         

                                                                                                                                                      Arguments

                                                                                                                                                      positionNumberRequired. The position to start inserting at
                                                                                                                                                      textStringRequired. A chunk of text to insert

                                                                                                                                                      Returns true if the character at the position is a soft tab.

                                                                                                                                                      -

                                                                                                                                                      Returns true if the character at the position is a soft tab.

                                                                                                                                                      -

                                                                                                                                                         

                                                                                                                                                      Arguments

                                                                                                                                                      positionObjectRequired. The position to check

                                                                                                                                                      Shifts all the lines in the document up one, starting from firstRow and ending at lastRow.

                                                                                                                                                      -

                                                                                                                                                      Shifts all the lines in the document up one, starting from firstRow and ending at lastRow.

                                                                                                                                                      -

                                                                                                                                                         

                                                                                                                                                      Arguments

                                                                                                                                                      firstRowNumberRequired. The starting row to move up
                                                                                                                                                      lastRowNumberRequired. The final row to move up

                                                                                                                                                      { row: newRowLocation, column: newColumnLocation }

                                                                                                                                                      -

                                                                                                                                                      { row: newRowLocation, column: newColumnLocation }

                                                                                                                                                      -

                                                                                                                                                         

                                                                                                                                                      Arguments

                                                                                                                                                      fromRangeRangeRequired. The range of text you want moved within the document
                                                                                                                                                      toPositionObjectRequired. The location (row and column) where you want to move the text to
                                                                                                                                                        • EditSession.onReloadTokenizer(e)

                                                                                                                                                        Reloads all the tokens on the current session. This function calls start to all the rows; it also emits the 'tokenizerUpdate' event.

                                                                                                                                                        -

                                                                                                                                                        Reloads all the tokens on the current session. This function calls start to all the rows; it also emits the 'tokenizerUpdate' event.

                                                                                                                                                        -

                                                                                                                                                           

                                                                                                                                                          • EditSession.outdentRows(Range range)

                                                                                                                                                          Outdents all the rows defined by the start and end properties of range.

                                                                                                                                                          -

                                                                                                                                                          Outdents all the rows defined by the start and end properties of range.

                                                                                                                                                          -

                                                                                                                                                             

                                                                                                                                                          Arguments

                                                                                                                                                          rangeRangeRequired. A range of rows

                                                                                                                                                          Re-implements a previously undone change to your document.

                                                                                                                                                          -

                                                                                                                                                          Re-implements a previously undone change to your document.

                                                                                                                                                          -

                                                                                                                                                             

                                                                                                                                                          Arguments

                                                                                                                                                          deltasArrayRequired. An array of previous changes
                                                                                                                                                          dontSelectBooleanRequired. If true, doesn't select the range of where the change occured

                                                                                                                                                          Removes the range from the document.

                                                                                                                                                          -

                                                                                                                                                          Removes the range from the document.

                                                                                                                                                          -

                                                                                                                                                             

                                                                                                                                                          Arguments

                                                                                                                                                          rangeRangeRequired. A specified Range to remove
                                                                                                                                                            • EditSession.removeGutterDecoration(Number row, String className)
                                                                                                                                                              • Void

                                                                                                                                                            Removes className from the row.

                                                                                                                                                            -

                                                                                                                                                            Removes className from the row.

                                                                                                                                                            -

                                                                                                                                                               

                                                                                                                                                            Arguments

                                                                                                                                                            rowNumberRequired. The row number
                                                                                                                                                            classNameStringRequired. The class to add
                                                                                                                                                              • EditSession.removeMarker(Number markerId)

                                                                                                                                                              Removes the marker with the specified ID. If this marker was in front, the 'changeFrontMarker' event is emitted. If the marker was in the back, the 'changeBackMarker' event is emitted.

                                                                                                                                                              -

                                                                                                                                                              Removes the marker with the specified ID. If this marker was in front, the 'changeFrontMarker' event is emitted. If the marker was in the back, the 'changeBackMarker' event is emitted.

                                                                                                                                                              -

                                                                                                                                                                 

                                                                                                                                                              Arguments

                                                                                                                                                              markerIdNumberRequired. A number representing a marker

                                                                                                                                                              Replaces a range in the document with the new text.

                                                                                                                                                              -

                                                                                                                                                              Replaces a range in the document with the new text.

                                                                                                                                                              -

                                                                                                                                                                 

                                                                                                                                                              Arguments

                                                                                                                                                              rangeRangeRequired. A specified Range to replace
                                                                                                                                                              textStringRequired. The new text to use as a replacement
                                                                                                                                                                • EditSession.screenToDocumentColumn(screenRow, screenColumn)
                                                                                                                                                                • Internal

                                                                                                                                                                 

                                                                                                                                                              Converts characters coordinates on the screen to characters coordinates within the document. This takes into account code folding, word wrap, tab size, and any other visual modifications.

                                                                                                                                                              -

                                                                                                                                                              Converts characters coordinates on the screen to characters coordinates within the document. This takes into account code folding, word wrap, tab size, and any other visual modifications.

                                                                                                                                                              -

                                                                                                                                                                 

                                                                                                                                                              Arguments

                                                                                                                                                              screenRowNumberRequired. The screen row to check
                                                                                                                                                              screenColumnNumberRequired. The screen column to check
                                                                                                                                                                • EditSession.screenToDocumentRow(screenRow, screenColumn)
                                                                                                                                                                • Internal

                                                                                                                                                                 

                                                                                                                                                                • EditSession.setAnnotations(Array annotations)

                                                                                                                                                                Sets annotations for the EditSession. This functions emits the 'changeAnnotation' event.

                                                                                                                                                                -

                                                                                                                                                                Sets annotations for the EditSession. This functions emits the 'changeAnnotation' event.

                                                                                                                                                                -

                                                                                                                                                                   

                                                                                                                                                                Arguments

                                                                                                                                                                annotationsArrayRequired. A list of annotations

                                                                                                                                                                Sets a breakpoint on the row number given by rows. This function also emites the 'changeBreakpoint' event.

                                                                                                                                                                -

                                                                                                                                                                Sets a breakpoint on the row number given by rows. This function also emites the 'changeBreakpoint' event.

                                                                                                                                                                -

                                                                                                                                                                   

                                                                                                                                                                Arguments

                                                                                                                                                                rowNumberRequired. A row index
                                                                                                                                                                classNameStringRequired. Class of the breakpoint
                                                                                                                                                                  • EditSession.setBreakpoints(Array rows)

                                                                                                                                                                  Sets a breakpoint on every row number given by rows. This function also emites the 'changeBreakpoint' event.

                                                                                                                                                                  -

                                                                                                                                                                  Sets a breakpoint on every row number given by rows. This function also emites the 'changeBreakpoint' event.

                                                                                                                                                                  -

                                                                                                                                                                     

                                                                                                                                                                  Arguments

                                                                                                                                                                  rowsArrayRequired. An array of row indicies

                                                                                                                                                                  Sets the EditSession to point to a new Document. If a BackgroundTokenizer exists, it also points to doc.

                                                                                                                                                                  -

                                                                                                                                                                  Sets the EditSession to point to a new Document. If a BackgroundTokenizer exists, it also points to doc.

                                                                                                                                                                  -

                                                                                                                                                                     

                                                                                                                                                                  Arguments

                                                                                                                                                                  docDocumentRequired. The new Document to use

                                                                                                                                                                  Sets a new text mode for the EditSession. This method also emits the 'changeMode' event. If a BackgroundTokenizer is set, the 'tokenizerUpdate' event is also emitted.

                                                                                                                                                                  -

                                                                                                                                                                  Sets a new text mode for the EditSession. This method also emits the 'changeMode' event. If a BackgroundTokenizer is set, the 'tokenizerUpdate' event is also emitted.

                                                                                                                                                                  -

                                                                                                                                                                     

                                                                                                                                                                  Arguments

                                                                                                                                                                  modeTextModeRequired. Set a new text mode

                                                                                                                                                                  Sets the new line mode.

                                                                                                                                                                  -

                                                                                                                                                                  Sets the new line mode.

                                                                                                                                                                  -

                                                                                                                                                                     

                                                                                                                                                                  Arguments

                                                                                                                                                                  newLineModeStringRequired. The newline mode to use; can be either windows, unix, or auto
                                                                                                                                                                    • EditSession.setOverwrite(Boolean overwrite)

                                                                                                                                                                    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.

                                                                                                                                                                    -

                                                                                                                                                                    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.

                                                                                                                                                                    -

                                                                                                                                                                       

                                                                                                                                                                    Arguments

                                                                                                                                                                    overwriteBooleanRequired. Defines wheter or not to set overwrites
                                                                                                                                                                      • EditSession.setScrollLeft(scrollLeft)

                                                                                                                                                                      Sets the value of the distance between the left of the editor and the leftmost part of the visible content.

                                                                                                                                                                      -

                                                                                                                                                                      Sets the value of the distance between the left of the editor and the leftmost part of the visible content.

                                                                                                                                                                      -

                                                                                                                                                                         

                                                                                                                                                                        • EditSession.setScrollTop(Number scrollTop)

                                                                                                                                                                        This function sets the scroll top value. It also emits the 'changeScrollTop' event.

                                                                                                                                                                        -

                                                                                                                                                                        This function sets the scroll top value. It also emits the 'changeScrollTop' event.

                                                                                                                                                                        -

                                                                                                                                                                           

                                                                                                                                                                        Arguments

                                                                                                                                                                        scrollTopNumberRequired. The new scroll top value
                                                                                                                                                                          • EditSession.setTabSize(Number tabSize)

                                                                                                                                                                          Set the number of spaces that define a soft tab; for example, passing in 4 transforms the soft tabs to be equivalent to four spaces. This function also emits the changeTabSize event.

                                                                                                                                                                          -

                                                                                                                                                                          Set the number of spaces that define a soft tab; for example, passing in 4 transforms the soft tabs to be equivalent to four spaces. This function also emits the changeTabSize event.

                                                                                                                                                                          -

                                                                                                                                                                             

                                                                                                                                                                          Arguments

                                                                                                                                                                          tabSizeNumberRequired. The new tab size

                                                                                                                                                                          Sets the undo manager.

                                                                                                                                                                          -

                                                                                                                                                                          Sets the undo manager.

                                                                                                                                                                          -

                                                                                                                                                                             

                                                                                                                                                                          Arguments

                                                                                                                                                                          undoManagerUndoManagerRequired. The new undo manager
                                                                                                                                                                            • EditSession.setUndoSelect(Boolean enable)

                                                                                                                                                                            ENables or disables highlighting of the range where an undo occured.

                                                                                                                                                                            -

                                                                                                                                                                            ENables or disables highlighting of the range where an undo occured.

                                                                                                                                                                            -

                                                                                                                                                                               

                                                                                                                                                                            Arguments

                                                                                                                                                                            enableBooleanRequired. If true, selects the range of the reinserted change
                                                                                                                                                                              • EditSession.setUseSoftTabs(Boolean useSoftTabs)

                                                                                                                                                                              Pass true to enable the use of soft tabs. Soft tabs means you're using spaces instead of the tab character ('\t').

                                                                                                                                                                              -

                                                                                                                                                                              Pass true to enable the use of soft tabs. Soft tabs means you're using spaces instead of the tab character ('\t').

                                                                                                                                                                              -

                                                                                                                                                                                 

                                                                                                                                                                              Arguments

                                                                                                                                                                              useSoftTabsBooleanRequired. Value indicating whether or not to use soft tabs
                                                                                                                                                                                • EditSession.setUseWorker(Boolean useWorker)

                                                                                                                                                                                Identifies if you want to use a worker for the EditSession.

                                                                                                                                                                                -

                                                                                                                                                                                Identifies if you want to use a worker for the EditSession.

                                                                                                                                                                                -

                                                                                                                                                                                   

                                                                                                                                                                                Arguments

                                                                                                                                                                                useWorkerBooleanRequired. Set to true to use a worker
                                                                                                                                                                                  • EditSession.setUseWrapMode(Boolean useWrapMode)

                                                                                                                                                                                  Sets whether or not line wrapping is enabled. If useWrapMode is different than the current value, the 'changeWrapMode' event is emitted.

                                                                                                                                                                                  -

                                                                                                                                                                                  Sets whether or not line wrapping is enabled. If useWrapMode is different than the current value, the 'changeWrapMode' event is emitted.

                                                                                                                                                                                  -

                                                                                                                                                                                     

                                                                                                                                                                                  Arguments

                                                                                                                                                                                  useWrapModeBooleanRequired. Enable (or disable) wrap mode
                                                                                                                                                                                    • EditSession.setValue(String text)

                                                                                                                                                                                    Sets the session text.

                                                                                                                                                                                    -

                                                                                                                                                                                    Sets the session text.

                                                                                                                                                                                    -

                                                                                                                                                                                       

                                                                                                                                                                                    Arguments

                                                                                                                                                                                    textStringRequired. The new text to place

                                                                                                                                                                                    Sets the boundaries of wrap. Either value can be null to have an unconstrained wrap, or, they can be the same number to pin the limit. If the wrap limits for min or max are different, this method also emits the 'changeWrapMode' event.

                                                                                                                                                                                    -

                                                                                                                                                                                    Sets the boundaries of wrap. Either value can be null to have an unconstrained wrap, or, they can be the same number to pin the limit. If the wrap limits for min or max are different, this method also emits the 'changeWrapMode' event.

                                                                                                                                                                                    -

                                                                                                                                                                                       

                                                                                                                                                                                    Arguments

                                                                                                                                                                                    minNumberRequired. The minimum wrap value (the left side wrap)
                                                                                                                                                                                    maxNumberRequired. The maximum wrap value (the right side wrap)
                                                                                                                                                                                      • EditSession.stopWorker()
                                                                                                                                                                                      • Internal

                                                                                                                                                                                       

                                                                                                                                                                                      • EditSession.toggleOverwrite()

                                                                                                                                                                                      Sets the value of overwrite to the opposite of whatever it currently is.

                                                                                                                                                                                      -

                                                                                                                                                                                      Sets the value of overwrite to the opposite of whatever it currently is.

                                                                                                                                                                                      -

                                                                                                                                                                                         

                                                                                                                                                                                      Reverts previous changes to your document.

                                                                                                                                                                                      -

                                                                                                                                                                                      Reverts previous changes to your document.

                                                                                                                                                                                      -

                                                                                                                                                                                         

                                                                                                                                                                                      Arguments

                                                                                                                                                                                      deltasArrayRequired. An array of previous changes
                                                                                                                                                                                      dontSelectBooleanRequired. If true, doesn't select the range of where the change occured
                                                                                                                                                                                      +

                                                                                                                                                                                         

                                                                                                                                                                                      Inserts a block of text and the indicated position.

                                                                                                                                                                                      +

                                                                                                                                                                                      Arguments

                                                                                                                                                                                      positionNumberRequired. The position to start inserting at
                                                                                                                                                                                      textStringRequired. A chunk of text to insert

                                                                                                                                                                                      Returns true if the character at the position is a soft tab.

                                                                                                                                                                                      +

                                                                                                                                                                                         

                                                                                                                                                                                      Returns true if the character at the position is a soft tab.

                                                                                                                                                                                      +

                                                                                                                                                                                      Arguments

                                                                                                                                                                                      positionObjectRequired. The position to check

                                                                                                                                                                                         

                                                                                                                                                                                      Arguments

                                                                                                                                                                                      firstRowNumberRequired. The starting row to move down
                                                                                                                                                                                      lastRowNumberRequired. The final row to move down

                                                                                                                                                                                      Shifts all the lines in the document up one, starting from firstRow and ending at lastRow.

                                                                                                                                                                                      +

                                                                                                                                                                                         

                                                                                                                                                                                      Shifts all the lines in the document up one, starting from firstRow and ending at lastRow.

                                                                                                                                                                                      +

                                                                                                                                                                                      Arguments

                                                                                                                                                                                      firstRowNumberRequired. The starting row to move up
                                                                                                                                                                                      lastRowNumberRequired. The final row to move up

                                                                                                                                                                                      { row: newRowLocation, column: newColumnLocation }

                                                                                                                                                                                      +

                                                                                                                                                                                         

                                                                                                                                                                                      { row: newRowLocation, column: newColumnLocation }

                                                                                                                                                                                      +

                                                                                                                                                                                      Arguments

                                                                                                                                                                                      fromRangeRangeRequired. The range of text you want moved within the document
                                                                                                                                                                                      toPositionObjectRequired. The location (row and column) where you want to move the text to
                                                                                                                                                                                        • EditSession.onReloadTokenizer(e)

                                                                                                                                                                                        Reloads all the tokens on the current session. This function calls start to all the rows; it also emits the 'tokenizerUpdate' event.

                                                                                                                                                                                        +

                                                                                                                                                                                           

                                                                                                                                                                                        Reloads all the tokens on the current session. This function calls start to all the rows; it also emits the 'tokenizerUpdate' event.

                                                                                                                                                                                        +
                                                                                                                                                                                          • EditSession.outdentRows(Range range)

                                                                                                                                                                                          Outdents all the rows defined by the start and end properties of range.

                                                                                                                                                                                          +

                                                                                                                                                                                             

                                                                                                                                                                                          Outdents all the rows defined by the start and end properties of range.

                                                                                                                                                                                          +

                                                                                                                                                                                          Arguments

                                                                                                                                                                                          rangeRangeRequired. A range of rows

                                                                                                                                                                                          Re-implements a previously undone change to your document.

                                                                                                                                                                                          +

                                                                                                                                                                                             

                                                                                                                                                                                          Re-implements a previously undone change to your document.

                                                                                                                                                                                          +

                                                                                                                                                                                          Arguments

                                                                                                                                                                                          deltasArrayRequired. An array of previous changes
                                                                                                                                                                                          dontSelectBooleanRequired. If true, doesn't select the range of where the change occured

                                                                                                                                                                                          Removes the range from the document.

                                                                                                                                                                                          +

                                                                                                                                                                                             

                                                                                                                                                                                          Removes the range from the document.

                                                                                                                                                                                          +

                                                                                                                                                                                          Arguments

                                                                                                                                                                                          rangeRangeRequired. A specified Range to remove
                                                                                                                                                                                            • EditSession.removeGutterDecoration(Number row, String className)
                                                                                                                                                                                              • Void

                                                                                                                                                                                            Removes className from the row.

                                                                                                                                                                                            +

                                                                                                                                                                                               

                                                                                                                                                                                            Removes className from the row.

                                                                                                                                                                                            +

                                                                                                                                                                                            Arguments

                                                                                                                                                                                            rowNumberRequired. The row number
                                                                                                                                                                                            classNameStringRequired. The class to add
                                                                                                                                                                                              • EditSession.removeMarker(Number markerId)

                                                                                                                                                                                              Removes the marker with the specified ID. If this marker was in front, the 'changeFrontMarker' event is emitted. If the marker was in the back, the 'changeBackMarker' event is emitted.

                                                                                                                                                                                              +

                                                                                                                                                                                                 

                                                                                                                                                                                              Removes the marker with the specified ID. If this marker was in front, the 'changeFrontMarker' event is emitted. If the marker was in the back, the 'changeBackMarker' event is emitted.

                                                                                                                                                                                              +

                                                                                                                                                                                              Arguments

                                                                                                                                                                                              markerIdNumberRequired. A number representing a marker

                                                                                                                                                                                              Replaces a range in the document with the new text.

                                                                                                                                                                                              +

                                                                                                                                                                                                 

                                                                                                                                                                                              Replaces a range in the document with the new text.

                                                                                                                                                                                              +

                                                                                                                                                                                              Arguments

                                                                                                                                                                                              rangeRangeRequired. A specified Range to replace
                                                                                                                                                                                              textStringRequired. The new text to use as a replacement
                                                                                                                                                                                                • EditSession.screenToDocumentColumn(screenRow, screenColumn)
                                                                                                                                                                                                • Internal

                                                                                                                                                                                                 

                                                                                                                                                                                              Converts characters coordinates on the screen to characters coordinates within the document. This takes into account code folding, word wrap, tab size, and any other visual modifications.

                                                                                                                                                                                              +

                                                                                                                                                                                                 

                                                                                                                                                                                              Converts characters coordinates on the screen to characters coordinates within the document. This takes into account code folding, word wrap, tab size, and any other visual modifications.

                                                                                                                                                                                              +

                                                                                                                                                                                              Arguments

                                                                                                                                                                                              screenRowNumberRequired. The screen row to check
                                                                                                                                                                                              screenColumnNumberRequired. The screen column to check
                                                                                                                                                                                                • EditSession.screenToDocumentRow(screenRow, screenColumn)
                                                                                                                                                                                                • Internal

                                                                                                                                                                                                 

                                                                                                                                                                                                • EditSession.setAnnotations(Array annotations)

                                                                                                                                                                                                Sets annotations for the EditSession. This functions emits the 'changeAnnotation' event.

                                                                                                                                                                                                +

                                                                                                                                                                                                   

                                                                                                                                                                                                Sets annotations for the EditSession. This functions emits the 'changeAnnotation' event.

                                                                                                                                                                                                +

                                                                                                                                                                                                Arguments

                                                                                                                                                                                                annotationsArrayRequired. A list of annotations

                                                                                                                                                                                                Sets a breakpoint on the row number given by rows. This function also emites the 'changeBreakpoint' event.

                                                                                                                                                                                                +

                                                                                                                                                                                                   

                                                                                                                                                                                                Sets a breakpoint on the row number given by rows. This function also emites the 'changeBreakpoint' event.

                                                                                                                                                                                                +

                                                                                                                                                                                                Arguments

                                                                                                                                                                                                rowNumberRequired. A row index
                                                                                                                                                                                                classNameStringRequired. Class of the breakpoint
                                                                                                                                                                                                  • EditSession.setBreakpoints(Array rows)

                                                                                                                                                                                                  Sets a breakpoint on every row number given by rows. This function also emites the 'changeBreakpoint' event.

                                                                                                                                                                                                  +

                                                                                                                                                                                                     

                                                                                                                                                                                                  Sets a breakpoint on every row number given by rows. This function also emites the 'changeBreakpoint' event.

                                                                                                                                                                                                  +

                                                                                                                                                                                                  Arguments

                                                                                                                                                                                                  rowsArrayRequired. An array of row indicies

                                                                                                                                                                                                  Sets the EditSession to point to a new Document. If a BackgroundTokenizer exists, it also points to doc.

                                                                                                                                                                                                  +

                                                                                                                                                                                                     

                                                                                                                                                                                                  Sets the EditSession to point to a new Document. If a BackgroundTokenizer exists, it also points to doc.

                                                                                                                                                                                                  +

                                                                                                                                                                                                  Arguments

                                                                                                                                                                                                  docDocumentRequired. The new Document to use

                                                                                                                                                                                                  Sets a new text mode for the EditSession. This method also emits the 'changeMode' event. If a BackgroundTokenizer is set, the 'tokenizerUpdate' event is also emitted.

                                                                                                                                                                                                  +

                                                                                                                                                                                                     

                                                                                                                                                                                                  Sets a new text mode for the EditSession. This method also emits the 'changeMode' event. If a BackgroundTokenizer is set, the 'tokenizerUpdate' event is also emitted.

                                                                                                                                                                                                  +

                                                                                                                                                                                                  Arguments

                                                                                                                                                                                                  modeTextModeRequired. Set a new text mode

                                                                                                                                                                                                  Sets the new line mode.

                                                                                                                                                                                                  +

                                                                                                                                                                                                     

                                                                                                                                                                                                  Sets the new line mode.

                                                                                                                                                                                                  +

                                                                                                                                                                                                  Arguments

                                                                                                                                                                                                  newLineModeStringRequired. The newline mode to use; can be either windows, unix, or auto
                                                                                                                                                                                                    • EditSession.setOverwrite(Boolean overwrite)

                                                                                                                                                                                                    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.

                                                                                                                                                                                                    +

                                                                                                                                                                                                       

                                                                                                                                                                                                    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.

                                                                                                                                                                                                    +

                                                                                                                                                                                                    Arguments

                                                                                                                                                                                                    overwriteBooleanRequired. Defines wheter or not to set overwrites
                                                                                                                                                                                                      • EditSession.setScrollLeft(scrollLeft)

                                                                                                                                                                                                      Sets the value of the distance between the left of the editor and the leftmost part of the visible content.

                                                                                                                                                                                                      +

                                                                                                                                                                                                         

                                                                                                                                                                                                      Sets the value of the distance between the left of the editor and the leftmost part of the visible content.

                                                                                                                                                                                                      +
                                                                                                                                                                                                        • EditSession.setScrollTop(Number scrollTop)

                                                                                                                                                                                                        This function sets the scroll top value. It also emits the 'changeScrollTop' event.

                                                                                                                                                                                                        +

                                                                                                                                                                                                           

                                                                                                                                                                                                        This function sets the scroll top value. It also emits the 'changeScrollTop' event.

                                                                                                                                                                                                        +

                                                                                                                                                                                                        Arguments

                                                                                                                                                                                                        scrollTopNumberRequired. The new scroll top value
                                                                                                                                                                                                          • EditSession.setTabSize(Number tabSize)

                                                                                                                                                                                                          Set the number of spaces that define a soft tab; for example, passing in 4 transforms the soft tabs to be equivalent to four spaces. This function also emits the changeTabSize event.

                                                                                                                                                                                                          +

                                                                                                                                                                                                             

                                                                                                                                                                                                          Set the number of spaces that define a soft tab; for example, passing in 4 transforms the soft tabs to be equivalent to four spaces. This function also emits the changeTabSize event.

                                                                                                                                                                                                          +

                                                                                                                                                                                                          Arguments

                                                                                                                                                                                                          tabSizeNumberRequired. The new tab size

                                                                                                                                                                                                          Sets the undo manager.

                                                                                                                                                                                                          +

                                                                                                                                                                                                             

                                                                                                                                                                                                          Sets the undo manager.

                                                                                                                                                                                                          +

                                                                                                                                                                                                          Arguments

                                                                                                                                                                                                          undoManagerUndoManagerRequired. The new undo manager
                                                                                                                                                                                                            • EditSession.setUndoSelect(Boolean enable)

                                                                                                                                                                                                            ENables or disables highlighting of the range where an undo occured.

                                                                                                                                                                                                            +

                                                                                                                                                                                                               

                                                                                                                                                                                                            ENables or disables highlighting of the range where an undo occured.

                                                                                                                                                                                                            +

                                                                                                                                                                                                            Arguments

                                                                                                                                                                                                            enableBooleanRequired. If true, selects the range of the reinserted change
                                                                                                                                                                                                              • EditSession.setUseSoftTabs(Boolean useSoftTabs)

                                                                                                                                                                                                              Pass true to enable the use of soft tabs. Soft tabs means you're using spaces instead of the tab character ('\t').

                                                                                                                                                                                                              +

                                                                                                                                                                                                                 

                                                                                                                                                                                                              Pass true to enable the use of soft tabs. Soft tabs means you're using spaces instead of the tab character ('\t').

                                                                                                                                                                                                              +

                                                                                                                                                                                                              Arguments

                                                                                                                                                                                                              useSoftTabsBooleanRequired. Value indicating whether or not to use soft tabs
                                                                                                                                                                                                                • EditSession.setUseWorker(Boolean useWorker)

                                                                                                                                                                                                                Identifies if you want to use a worker for the EditSession.

                                                                                                                                                                                                                +

                                                                                                                                                                                                                   

                                                                                                                                                                                                                Identifies if you want to use a worker for the EditSession.

                                                                                                                                                                                                                +

                                                                                                                                                                                                                Arguments

                                                                                                                                                                                                                useWorkerBooleanRequired. Set to true to use a worker
                                                                                                                                                                                                                  • EditSession.setUseWrapMode(Boolean useWrapMode)

                                                                                                                                                                                                                  Sets whether or not line wrapping is enabled. If useWrapMode is different than the current value, the 'changeWrapMode' event is emitted.

                                                                                                                                                                                                                  +

                                                                                                                                                                                                                     

                                                                                                                                                                                                                  Sets whether or not line wrapping is enabled. If useWrapMode is different than the current value, the 'changeWrapMode' event is emitted.

                                                                                                                                                                                                                  +

                                                                                                                                                                                                                  Arguments

                                                                                                                                                                                                                  useWrapModeBooleanRequired. Enable (or disable) wrap mode
                                                                                                                                                                                                                    • EditSession.setValue(String text)

                                                                                                                                                                                                                    Sets the session text.

                                                                                                                                                                                                                    +

                                                                                                                                                                                                                       

                                                                                                                                                                                                                    Sets the session text.

                                                                                                                                                                                                                    +

                                                                                                                                                                                                                    Arguments

                                                                                                                                                                                                                    textStringRequired. The new text to place

                                                                                                                                                                                                                    Sets the boundaries of wrap. Either value can be null to have an unconstrained wrap, or, they can be the same number to pin the limit. If the wrap limits for min or max are different, this method also emits the 'changeWrapMode' event.

                                                                                                                                                                                                                    +

                                                                                                                                                                                                                       

                                                                                                                                                                                                                    Sets the boundaries of wrap. Either value can be null to have an unconstrained wrap, or, they can be the same number to pin the limit. If the wrap limits for min or max are different, this method also emits the 'changeWrapMode' event.

                                                                                                                                                                                                                    +

                                                                                                                                                                                                                    Arguments

                                                                                                                                                                                                                    minNumberRequired. The minimum wrap value (the left side wrap)
                                                                                                                                                                                                                    maxNumberRequired. The maximum wrap value (the right side wrap)
                                                                                                                                                                                                                      • EditSession.stopWorker()
                                                                                                                                                                                                                      • Internal

                                                                                                                                                                                                                       

                                                                                                                                                                                                                      • EditSession.toggleOverwrite()

                                                                                                                                                                                                                      Sets the value of overwrite to the opposite of whatever it currently is.

                                                                                                                                                                                                                      +

                                                                                                                                                                                                                         

                                                                                                                                                                                                                      Sets the value of overwrite to the opposite of whatever it currently is.

                                                                                                                                                                                                                      +

                                                                                                                                                                                                                      Returns the current Document as a string.

                                                                                                                                                                                                                      +

                                                                                                                                                                                                                         

                                                                                                                                                                                                                      Returns the current Document as a string.

                                                                                                                                                                                                                      +

                                                                                                                                                                                                                      Reverts previous changes to your document.

                                                                                                                                                                                                                      +

                                                                                                                                                                                                                         

                                                                                                                                                                                                                      Reverts previous changes to your document.

                                                                                                                                                                                                                      +

                                                                                                                                                                                                                      Arguments

                                                                                                                                                                                                                      deltasArrayRequired. An array of previous changes
                                                                                                                                                                                                                      dontSelectBooleanRequired. If true, doesn't select the range of where the change occured
                                                                                                                                                                                                                      diff --git a/api/editor.html b/api/editor.html index 469f7d21..e2b7c172 100644 --- a/api/editor.html +++ b/api/editor.html @@ -2,275 +2,273 @@ Editor - Ace API

                                                                                                                                                                                                                      Editor[edit]

                                                                                                                                                                                                                      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.

                                                                                                                                                                                                                      -

                                                                                                                                                                                                                      Constructors

                                                                                                                                                                                                                      Creates a new Editor object.

                                                                                                                                                                                                                      -

                                                                                                                                                                                                                      Creates a new Editor object.

                                                                                                                                                                                                                      -

                                                                                                                                                                                                                         

                                                                                                                                                                                                                      Arguments

                                                                                                                                                                                                                      rendererVirtualRendererRequired. Associated VirtualRenderer that draws everything
                                                                                                                                                                                                                      sessionEditSessionRequired. The EditSession to refer to

                                                                                                                                                                                                                      Events

                                                                                                                                                                                                                        • Editor.on("blur", function())

                                                                                                                                                                                                                        Emitted once the editor has been blurred.

                                                                                                                                                                                                                        -

                                                                                                                                                                                                                        Emitted once the editor has been blurred.

                                                                                                                                                                                                                        -

                                                                                                                                                                                                                           

                                                                                                                                                                                                                          • Editor.on("change", function(Object e))

                                                                                                                                                                                                                          Emitted whenever the document is changed.

                                                                                                                                                                                                                          -

                                                                                                                                                                                                                          Emitted whenever the document is changed.

                                                                                                                                                                                                                          -

                                                                                                                                                                                                                             

                                                                                                                                                                                                                          Arguments

                                                                                                                                                                                                                          eObjectRequired. Contains a single property, data, which has the delta of changes
                                                                                                                                                                                                                            • Editor.on("changeAnnotation", function())

                                                                                                                                                                                                                            Emitted when an annotation changes.

                                                                                                                                                                                                                            -

                                                                                                                                                                                                                            Emitted when an annotation changes.

                                                                                                                                                                                                                            -

                                                                                                                                                                                                                               

                                                                                                                                                                                                                              • Editor.on("changeBackMarker", function())

                                                                                                                                                                                                                              Emitted when a back marker changes.

                                                                                                                                                                                                                              -

                                                                                                                                                                                                                              Emitted when a back marker changes.

                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                 

                                                                                                                                                                                                                                • Editor.on("changeBreakpoint", function())

                                                                                                                                                                                                                                Emitted when a breakpoint changes.

                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                Emitted when a breakpoint changes.

                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                   

                                                                                                                                                                                                                                  • Editor.on("changeFold", function())

                                                                                                                                                                                                                                  Emitted when the code folds change.

                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                  Emitted when the code folds change.

                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                     

                                                                                                                                                                                                                                    • Editor.on("changeFrontMarker", function())

                                                                                                                                                                                                                                    Emitted when a front marker changes.

                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                    Emitted when a front marker changes.

                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                       

                                                                                                                                                                                                                                      • Editor.on("changeMode", function())

                                                                                                                                                                                                                                      Emitted when the mode changes.

                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                      Emitted when the mode changes.

                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                         

                                                                                                                                                                                                                                        • Editor.on("changeWrapLimit", function())

                                                                                                                                                                                                                                        Emitted when the wrap limit changes.

                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                        Emitted when the wrap limit changes.

                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                           

                                                                                                                                                                                                                                          • Editor.on("changeWrapMode", function())

                                                                                                                                                                                                                                          Emitted when the wrap mode changes.

                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                          Emitted when the wrap mode changes.

                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                             

                                                                                                                                                                                                                                            • Editor.on("cursorChange", function())

                                                                                                                                                                                                                                            Emitted when the cursor changes.

                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                            Emitted when the cursor changes.

                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                               

                                                                                                                                                                                                                                              • Editor.on("focus", function())

                                                                                                                                                                                                                                              Emitted once the editor comes into focus.

                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                              Emitted once the editor comes into focus.

                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                 

                                                                                                                                                                                                                                                • Editor.on("selectionChange", function(Object e))

                                                                                                                                                                                                                                                Emitted when a selection has changed.

                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                Emitted when a selection has changed.

                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                   

                                                                                                                                                                                                                                                Arguments

                                                                                                                                                                                                                                                eObjectRequired. Contains a single property, data, which has the delta of changes

                                                                                                                                                                                                                                                Methods

                                                                                                                                                                                                                                                  • Editor.$getSelectedRows()

                                                                                                                                                                                                                                                  Returns an object indicating the currently selected rows. The object looks like this:

                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                  Returns an object indicating the currently selected rows. The object looks like this:

                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                  Constructors

                                                                                                                                                                                                                                                  Creates a new Editor object.

                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                     

                                                                                                                                                                                                                                                  Creates a new Editor object.

                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                  Arguments

                                                                                                                                                                                                                                                  rendererVirtualRendererRequired. Associated VirtualRenderer that draws everything
                                                                                                                                                                                                                                                  sessionEditSessionRequired. The EditSession to refer to

                                                                                                                                                                                                                                                  Events

                                                                                                                                                                                                                                                    • Editor.on("blur", function())

                                                                                                                                                                                                                                                    Emitted once the editor has been blurred.

                                                                                                                                                                                                                                                    +

                                                                                                                                                                                                                                                       

                                                                                                                                                                                                                                                    Emitted once the editor has been blurred.

                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                      • Editor.on("change", function(Object e))

                                                                                                                                                                                                                                                      Emitted whenever the document is changed.

                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                         

                                                                                                                                                                                                                                                      Emitted whenever the document is changed.

                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                      Arguments

                                                                                                                                                                                                                                                      eObjectRequired. Contains a single property, data, which has the delta of changes
                                                                                                                                                                                                                                                        • Editor.on("changeAnnotation", function())

                                                                                                                                                                                                                                                        Emitted when an annotation changes.

                                                                                                                                                                                                                                                        +

                                                                                                                                                                                                                                                           

                                                                                                                                                                                                                                                        Emitted when an annotation changes.

                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                          • Editor.on("changeBackMarker", function())

                                                                                                                                                                                                                                                          Emitted when a back marker changes.

                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                             

                                                                                                                                                                                                                                                          Emitted when a back marker changes.

                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                            • Editor.on("changeBreakpoint", function())

                                                                                                                                                                                                                                                            Emitted when a breakpoint changes.

                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                               

                                                                                                                                                                                                                                                            Emitted when a breakpoint changes.

                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                              • Editor.on("changeFold", function())

                                                                                                                                                                                                                                                              Emitted when the code folds change.

                                                                                                                                                                                                                                                              +

                                                                                                                                                                                                                                                                 

                                                                                                                                                                                                                                                              Emitted when the code folds change.

                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                • Editor.on("changeFrontMarker", function())

                                                                                                                                                                                                                                                                Emitted when a front marker changes.

                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                   

                                                                                                                                                                                                                                                                Emitted when a front marker changes.

                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                  • Editor.on("changeMode", function())

                                                                                                                                                                                                                                                                  Emitted when the mode changes.

                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                     

                                                                                                                                                                                                                                                                  Emitted when the mode changes.

                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                    • Editor.on("changeWrapLimit", function())

                                                                                                                                                                                                                                                                    Emitted when the wrap limit changes.

                                                                                                                                                                                                                                                                    +

                                                                                                                                                                                                                                                                       

                                                                                                                                                                                                                                                                    Emitted when the wrap limit changes.

                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                      • Editor.on("changeWrapMode", function())

                                                                                                                                                                                                                                                                      Emitted when the wrap mode changes.

                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                         

                                                                                                                                                                                                                                                                      Emitted when the wrap mode changes.

                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                        • Editor.on("cursorChange", function())

                                                                                                                                                                                                                                                                        Emitted when the cursor changes.

                                                                                                                                                                                                                                                                        +

                                                                                                                                                                                                                                                                           

                                                                                                                                                                                                                                                                        Emitted when the cursor changes.

                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                          • Editor.on("focus", function())

                                                                                                                                                                                                                                                                          Emitted once the editor comes into focus.

                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                             

                                                                                                                                                                                                                                                                          Emitted once the editor comes into focus.

                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                            • Editor.on("selectionChange", function(Object e))

                                                                                                                                                                                                                                                                            Emitted when a selection has changed.

                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                               

                                                                                                                                                                                                                                                                            Emitted when a selection has changed.

                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                            Arguments

                                                                                                                                                                                                                                                                            eObjectRequired. Contains a single property, data, which has the delta of changes

                                                                                                                                                                                                                                                                            Methods

                                                                                                                                                                                                                                                                              • Editor.$getSelectedRows()

                                                                                                                                                                                                                                                                              Returns an object indicating the currently selected rows. The object looks like this:

                                                                                                                                                                                                                                                                              +

                                                                                                                                                                                                                                                                                 

                                                                                                                                                                                                                                                                              Returns an object indicating the currently selected rows. The object looks like this:

                                                                                                                                                                                                                                                                              { first: range.start.row, last: range.end.row }

                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                 

                                                                                                                                                                                                                                                                              { first: range.start.row, last: range.end.row }

                                                                                                                                                                                                                                                                                • Editor.$getVisibleRowCount()

                                                                                                                                                                                                                                                                                Returns the number of currently visibile rows.

                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                Returns the number of currently visibile rows.

                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                   

                                                                                                                                                                                                                                                                                  • Editor.$highlightBrackets()
                                                                                                                                                                                                                                                                                  • Internal

                                                                                                                                                                                                                                                                                   

                                                                                                                                                                                                                                                                                Executes a specific function, which can be anything that manipulates selected lines, such as copying them, duplicating them, or shifting them.

                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                Executes a specific function, which can be anything that manipulates selected lines, such as copying them, duplicating them, or shifting them.

                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                   

                                                                                                                                                                                                                                                                                Arguments

                                                                                                                                                                                                                                                                                moverFunctionRequired. A method to call on each selected row
                                                                                                                                                                                                                                                                                  • Editor.$updateHighlightActiveLine()
                                                                                                                                                                                                                                                                                  • Internal

                                                                                                                                                                                                                                                                                   

                                                                                                                                                                                                                                                                                  • Editor.addSelectionMarker(Range orientedRange)

                                                                                                                                                                                                                                                                                  Adds the selection and cursor.

                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                  Adds the selection and cursor.

                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                     

                                                                                                                                                                                                                                                                                  Arguments

                                                                                                                                                                                                                                                                                  orientedRangeRangeRequired. A range containing a cursor

                                                                                                                                                                                                                                                                                  Outdents the current line.

                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                  Outdents the current line.

                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                     

                                                                                                                                                                                                                                                                                    • Editor.blur()

                                                                                                                                                                                                                                                                                    Blurs the current textInput.

                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                    Blurs the current textInput.

                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                       

                                                                                                                                                                                                                                                                                      • Editor.centerSelection()

                                                                                                                                                                                                                                                                                      Attempts to center the current selection on the screen.

                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                      Attempts to center the current selection on the screen.

                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                         

                                                                                                                                                                                                                                                                                      Empties the selection (by de-selecting it). This function also emits the 'changeSelection' event.

                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                      Empties the selection (by de-selecting it). This function also emits the 'changeSelection' event.

                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                         

                                                                                                                                                                                                                                                                                      Copies all the selected lines down one row.

                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                      Copies all the selected lines down one row.

                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                         

                                                                                                                                                                                                                                                                                        • Editor.destroy()

                                                                                                                                                                                                                                                                                        Cleans up the entire editor.

                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                        Cleans up the entire editor.

                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                           

                                                                                                                                                                                                                                                                                          • Editor.exitMultiSelectMode()
                                                                                                                                                                                                                                                                                            • Void

                                                                                                                                                                                                                                                                                          Removes all the selections except the last added one.

                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                          Removes all the selections except the last added one.

                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                             

                                                                                                                                                                                                                                                                                          Attempts to find needle within the document. For more information on options, see Search.

                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                          Attempts to find needle within the document. For more information on options, see Search.

                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                             

                                                                                                                                                                                                                                                                                          Arguments

                                                                                                                                                                                                                                                                                          needleStringRequired. The text to search for (optional)
                                                                                                                                                                                                                                                                                          optionsObjectRequired. An object defining various search properties
                                                                                                                                                                                                                                                                                          animateBooleanRequired. If true animate scrolling

                                                                                                                                                                                                                                                                                          Finds and selects all the occurences of needle.

                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                          Finds and selects all the occurences of needle.

                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                             

                                                                                                                                                                                                                                                                                          Arguments

                                                                                                                                                                                                                                                                                          needleStringRequired. The text to find
                                                                                                                                                                                                                                                                                          optionsObjectRequired. The search options
                                                                                                                                                                                                                                                                                          additiveBooleanRequired. keeps

                                                                                                                                                                                                                                                                                          Performs another search for needle in the document. For more information on options, see Search.

                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                          Performs another search for needle in the document. For more information on options, see Search.

                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                             

                                                                                                                                                                                                                                                                                          Arguments

                                                                                                                                                                                                                                                                                          optionsObjectRequired. search options
                                                                                                                                                                                                                                                                                          animateBooleanRequired. If true animate scrolling

                                                                                                                                                                                                                                                                                          Performs a search for needle backwards. For more information on options, see Search.

                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                          Performs a search for needle backwards. For more information on options, see Search.

                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                             

                                                                                                                                                                                                                                                                                          Arguments

                                                                                                                                                                                                                                                                                          optionsObjectRequired. search options
                                                                                                                                                                                                                                                                                          animateBooleanRequired. If true animate scrolling
                                                                                                                                                                                                                                                                                            • Editor.focus()

                                                                                                                                                                                                                                                                                            Brings the current textInput into focus.

                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                            Brings the current textInput into focus.

                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                               

                                                                                                                                                                                                                                                                                            Executes a command for each selection range.

                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                            Executes a command for each selection range.

                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                               

                                                                                                                                                                                                                                                                                            Arguments

                                                                                                                                                                                                                                                                                            cmdStringRequired. The command to execute
                                                                                                                                                                                                                                                                                            argsStringRequired. Any arguments for the command
                                                                                                                                                                                                                                                                                              • Editor.getBehavioursEnabled()

                                                                                                                                                                                                                                                                                              Returns true if the behaviors are currently enabled. "Behaviors" in this case is the auto-pairing of special characters, like quotation marks, parenthesis, or brackets.

                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                              Returns true if the behaviors are currently enabled. "Behaviors" in this case is the auto-pairing of special characters, like quotation marks, parenthesis, or brackets.

                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                 

                                                                                                                                                                                                                                                                                              Returns the string of text currently highlighted.

                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                              Returns the string of text currently highlighted.

                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                 

                                                                                                                                                                                                                                                                                              Gets the current position of the cursor.

                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                              Gets the current position of the cursor.

                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                 

                                                                                                                                                                                                                                                                                              Returns the current mouse drag delay.

                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                              Returns the current mouse drag delay.

                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                 

                                                                                                                                                                                                                                                                                                • Editor.getHighlightActiveLine()

                                                                                                                                                                                                                                                                                                Returns true if current lines are always highlighted.

                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                Returns true if current lines are always highlighted.

                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                   

                                                                                                                                                                                                                                                                                                  • Editor.getHighlightSelectedWord()

                                                                                                                                                                                                                                                                                                  Returns true if currently highlighted words are to be highlighted.

                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                  Returns true if currently highlighted words are to be highlighted.

                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                     

                                                                                                                                                                                                                                                                                                  Returns the keyboard handler.

                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                  Returns the keyboard handler.

                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                     

                                                                                                                                                                                                                                                                                                  Returns an object containing all the search options. For more information on options, see Search.

                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                  Returns an object containing all the search options. For more information on options, see Search.

                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                     

                                                                                                                                                                                                                                                                                                  Returns true if overwrites are enabled; false otherwise.

                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                  Returns true if overwrites are enabled; false otherwise.

                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                     

                                                                                                                                                                                                                                                                                                    • Editor.getPrintMarginColumn()

                                                                                                                                                                                                                                                                                                    Returns the column number of where the print margin is.

                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                    Returns the column number of where the print margin is.

                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                       

                                                                                                                                                                                                                                                                                                    Returns true if the editor is set to read-only mode.

                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                    Returns true if the editor is set to read-only mode.

                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                       

                                                                                                                                                                                                                                                                                                    Returns the value indicating how fast the mouse scroll speed is.

                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                    Returns the value indicating how fast the mouse scroll speed is.

                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                       

                                                                                                                                                                                                                                                                                                    Returns the currently highlighted selection.

                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                    Returns the currently highlighted selection.

                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                       

                                                                                                                                                                                                                                                                                                      • Editor.getSelectionStyle()

                                                                                                                                                                                                                                                                                                      Returns the current selection style.

                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                      Returns the current selection style.

                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                         

                                                                                                                                                                                                                                                                                                      Returns the current session being used.

                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                      Returns the current session being used.

                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                         

                                                                                                                                                                                                                                                                                                      Returns true if the fold widgets are shown.

                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                      Returns true if the fold widgets are shown.

                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                         

                                                                                                                                                                                                                                                                                                      Returns true if invisible characters are being shown.

                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                      Returns true if invisible characters are being shown.

                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                         

                                                                                                                                                                                                                                                                                                      Returns true if the print margin is being shown.

                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                      Returns true if the print margin is being shown.

                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                         

                                                                                                                                                                                                                                                                                                      Returns the current session's content.

                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                      Returns the current session's content.

                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                         

                                                                                                                                                                                                                                                                                                      Moves the cursor to the specified line number, and also into the indiciated column.

                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                      Moves the cursor to the specified line number, and also into the indiciated column.

                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                         

                                                                                                                                                                                                                                                                                                      Arguments

                                                                                                                                                                                                                                                                                                      lineNumberNumberRequired. The line number to go to
                                                                                                                                                                                                                                                                                                      columnNumberRequired. A column number to go to
                                                                                                                                                                                                                                                                                                      animateBooleanRequired. If true animates scolling
                                                                                                                                                                                                                                                                                                        • Editor.gotoPageDown()

                                                                                                                                                                                                                                                                                                        Shifts the document to wherever "page down" is, as well as moving the cursor position.

                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                        Shifts the document to wherever "page down" is, as well as moving the cursor position.

                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                           

                                                                                                                                                                                                                                                                                                          • Editor.gotoPageUp()

                                                                                                                                                                                                                                                                                                          Shifts the document to wherever "page up" is, as well as moving the cursor position.

                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                          Shifts the document to wherever "page up" is, as well as moving the cursor position.

                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                             

                                                                                                                                                                                                                                                                                                          Inserts text into wherever the cursor is pointing.

                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                          Inserts text into wherever the cursor is pointing.

                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                             

                                                                                                                                                                                                                                                                                                          Arguments

                                                                                                                                                                                                                                                                                                          textStringRequired. The new text to add

                                                                                                                                                                                                                                                                                                          Returns true if the current textInput is in focus.

                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                          Returns true if the current textInput is in focus.

                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                             

                                                                                                                                                                                                                                                                                                          Indicates if the entire row is currently visible on the screen.

                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                          Indicates if the entire row is currently visible on the screen.

                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                             

                                                                                                                                                                                                                                                                                                          Arguments

                                                                                                                                                                                                                                                                                                          rowNumberRequired. The row to check

                                                                                                                                                                                                                                                                                                          Indicates if the row is currently visible on the screen.

                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                          Indicates if the row is currently visible on the screen.

                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                             

                                                                                                                                                                                                                                                                                                          Arguments

                                                                                                                                                                                                                                                                                                          rowNumberRequired. The row to check
                                                                                                                                                                                                                                                                                                            • Editor.jumpToMatching()

                                                                                                                                                                                                                                                                                                            Moves the cursor's row and column to the next matching bracket.

                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                            Moves the cursor's row and column to the next matching bracket.

                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                               

                                                                                                                                                                                                                                                                                                            Moves the cursor to the specified row and column. Note that this does not de-select the current selection.

                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                            Moves the cursor to the specified row and column. Note that this does not de-select the current selection.

                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                               

                                                                                                                                                                                                                                                                                                            Arguments

                                                                                                                                                                                                                                                                                                            rowNumberRequired. The new row number
                                                                                                                                                                                                                                                                                                            columnNumberRequired. The new column number

                                                                                                                                                                                                                                                                                                            Moves the cursor to the position indicated by pos.row and pos.column.

                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                            Moves the cursor to the position indicated by pos.row and pos.column.

                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                               

                                                                                                                                                                                                                                                                                                            Arguments

                                                                                                                                                                                                                                                                                                            posObjectRequired. An object with two properties, row and column

                                                                                                                                                                                                                                                                                                            Shifts all the selected lines down one row.

                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                            Shifts all the selected lines down one row.

                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                               

                                                                                                                                                                                                                                                                                                            Shifts all the selected lines up one row.

                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                            Shifts all the selected lines up one row.

                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                               

                                                                                                                                                                                                                                                                                                            Moves a range of text from the given range to the given position. toPosition is an object that looks like this:

                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                            Moves a range of text from the given range to the given position. toPosition is an object that looks like this:

                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                               

                                                                                                                                                                                                                                                                                                            Returns the number of currently visibile rows.

                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                              • Editor.$highlightBrackets()
                                                                                                                                                                                                                                                                                                              • Internal

                                                                                                                                                                                                                                                                                                               

                                                                                                                                                                                                                                                                                                            Executes a specific function, which can be anything that manipulates selected lines, such as copying them, duplicating them, or shifting them.

                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                               

                                                                                                                                                                                                                                                                                                            Executes a specific function, which can be anything that manipulates selected lines, such as copying them, duplicating them, or shifting them.

                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                            Arguments

                                                                                                                                                                                                                                                                                                            moverFunctionRequired. A method to call on each selected row
                                                                                                                                                                                                                                                                                                              • Editor.$updateHighlightActiveLine()
                                                                                                                                                                                                                                                                                                              • Internal

                                                                                                                                                                                                                                                                                                               

                                                                                                                                                                                                                                                                                                              • Editor.addSelectionMarker(Range orientedRange)

                                                                                                                                                                                                                                                                                                              Adds the selection and cursor.

                                                                                                                                                                                                                                                                                                              +

                                                                                                                                                                                                                                                                                                                 

                                                                                                                                                                                                                                                                                                              Adds the selection and cursor.

                                                                                                                                                                                                                                                                                                              +

                                                                                                                                                                                                                                                                                                              Arguments

                                                                                                                                                                                                                                                                                                              orientedRangeRangeRequired. A range containing a cursor

                                                                                                                                                                                                                                                                                                              Outdents the current line.

                                                                                                                                                                                                                                                                                                              +

                                                                                                                                                                                                                                                                                                                 

                                                                                                                                                                                                                                                                                                              Outdents the current line.

                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                • Editor.blur()

                                                                                                                                                                                                                                                                                                                Blurs the current textInput.

                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                   

                                                                                                                                                                                                                                                                                                                Blurs the current textInput.

                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                  • Editor.centerSelection()

                                                                                                                                                                                                                                                                                                                  Attempts to center the current selection on the screen.

                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                     

                                                                                                                                                                                                                                                                                                                  Attempts to center the current selection on the screen.

                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                  Empties the selection (by de-selecting it). This function also emits the 'changeSelection' event.

                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                     

                                                                                                                                                                                                                                                                                                                  Empties the selection (by de-selecting it). This function also emits the 'changeSelection' event.

                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                  Copies all the selected lines down one row.

                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                     

                                                                                                                                                                                                                                                                                                                  Copies all the selected lines down one row.

                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                    • Editor.destroy()

                                                                                                                                                                                                                                                                                                                    Cleans up the entire editor.

                                                                                                                                                                                                                                                                                                                    +

                                                                                                                                                                                                                                                                                                                       

                                                                                                                                                                                                                                                                                                                    Cleans up the entire editor.

                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                      • Editor.exitMultiSelectMode()
                                                                                                                                                                                                                                                                                                                        • Void

                                                                                                                                                                                                                                                                                                                      Removes all the selections except the last added one.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                         

                                                                                                                                                                                                                                                                                                                      Removes all the selections except the last added one.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Attempts to find needle within the document. For more information on options, see Search.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                         

                                                                                                                                                                                                                                                                                                                      Attempts to find needle within the document. For more information on options, see Search.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Arguments

                                                                                                                                                                                                                                                                                                                      needleStringRequired. The text to search for (optional)
                                                                                                                                                                                                                                                                                                                      optionsObjectRequired. An object defining various search properties
                                                                                                                                                                                                                                                                                                                      animateBooleanRequired. If true animate scrolling

                                                                                                                                                                                                                                                                                                                      Finds and selects all the occurences of needle.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                         

                                                                                                                                                                                                                                                                                                                      Finds and selects all the occurences of needle.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Arguments

                                                                                                                                                                                                                                                                                                                      needleStringRequired. The text to find
                                                                                                                                                                                                                                                                                                                      optionsObjectRequired. The search options
                                                                                                                                                                                                                                                                                                                      additiveBooleanRequired. keeps

                                                                                                                                                                                                                                                                                                                      Performs another search for needle in the document. For more information on options, see Search.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                         

                                                                                                                                                                                                                                                                                                                      Performs another search for needle in the document. For more information on options, see Search.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Arguments

                                                                                                                                                                                                                                                                                                                      optionsObjectRequired. search options
                                                                                                                                                                                                                                                                                                                      animateBooleanRequired. If true animate scrolling

                                                                                                                                                                                                                                                                                                                      Performs a search for needle backwards. For more information on options, see Search.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                         

                                                                                                                                                                                                                                                                                                                      Performs a search for needle backwards. For more information on options, see Search.

                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                      Arguments

                                                                                                                                                                                                                                                                                                                      optionsObjectRequired. search options
                                                                                                                                                                                                                                                                                                                      animateBooleanRequired. If true animate scrolling
                                                                                                                                                                                                                                                                                                                        • Editor.focus()

                                                                                                                                                                                                                                                                                                                        Brings the current textInput into focus.

                                                                                                                                                                                                                                                                                                                        +

                                                                                                                                                                                                                                                                                                                           

                                                                                                                                                                                                                                                                                                                        Brings the current textInput into focus.

                                                                                                                                                                                                                                                                                                                        +

                                                                                                                                                                                                                                                                                                                        Executes a command for each selection range.

                                                                                                                                                                                                                                                                                                                        +

                                                                                                                                                                                                                                                                                                                           

                                                                                                                                                                                                                                                                                                                        Executes a command for each selection range.

                                                                                                                                                                                                                                                                                                                        +

                                                                                                                                                                                                                                                                                                                        Arguments

                                                                                                                                                                                                                                                                                                                        cmdStringRequired. The command to execute
                                                                                                                                                                                                                                                                                                                        argsStringRequired. Any arguments for the command
                                                                                                                                                                                                                                                                                                                          • Editor.getBehavioursEnabled()

                                                                                                                                                                                                                                                                                                                          Returns true if the behaviors are currently enabled. "Behaviors" in this case is the auto-pairing of special characters, like quotation marks, parenthesis, or brackets.

                                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                                             

                                                                                                                                                                                                                                                                                                                          Returns true if the behaviors are currently enabled. "Behaviors" in this case is the auto-pairing of special characters, like quotation marks, parenthesis, or brackets.

                                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                                          Returns the string of text currently highlighted.

                                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                                             

                                                                                                                                                                                                                                                                                                                          Returns the string of text currently highlighted.

                                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                                          Gets the current position of the cursor.

                                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                                             

                                                                                                                                                                                                                                                                                                                          Gets the current position of the cursor.

                                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                                          Returns the current mouse drag delay.

                                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                                             

                                                                                                                                                                                                                                                                                                                          Returns the current mouse drag delay.

                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                            • Editor.getHighlightActiveLine()

                                                                                                                                                                                                                                                                                                                            Returns true if current lines are always highlighted.

                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                               

                                                                                                                                                                                                                                                                                                                            Returns true if current lines are always highlighted.

                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                              • Editor.getHighlightSelectedWord()

                                                                                                                                                                                                                                                                                                                              Returns true if currently highlighted words are to be highlighted.

                                                                                                                                                                                                                                                                                                                              +

                                                                                                                                                                                                                                                                                                                                 

                                                                                                                                                                                                                                                                                                                              Returns true if currently highlighted words are to be highlighted.

                                                                                                                                                                                                                                                                                                                              +

                                                                                                                                                                                                                                                                                                                              Returns the keyboard handler.

                                                                                                                                                                                                                                                                                                                              +

                                                                                                                                                                                                                                                                                                                                 

                                                                                                                                                                                                                                                                                                                              Returns the keyboard handler.

                                                                                                                                                                                                                                                                                                                              +

                                                                                                                                                                                                                                                                                                                              Returns an object containing all the search options. For more information on options, see Search.

                                                                                                                                                                                                                                                                                                                              +

                                                                                                                                                                                                                                                                                                                                 

                                                                                                                                                                                                                                                                                                                              Returns an object containing all the search options. For more information on options, see Search.

                                                                                                                                                                                                                                                                                                                              +

                                                                                                                                                                                                                                                                                                                              Returns true if overwrites are enabled; false otherwise.

                                                                                                                                                                                                                                                                                                                              +

                                                                                                                                                                                                                                                                                                                                 

                                                                                                                                                                                                                                                                                                                              Returns true if overwrites are enabled; false otherwise.

                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                • Editor.getPrintMarginColumn()

                                                                                                                                                                                                                                                                                                                                Returns the column number of where the print margin is.

                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                   

                                                                                                                                                                                                                                                                                                                                Returns the column number of where the print margin is.

                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                Returns true if the editor is set to read-only mode.

                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                   

                                                                                                                                                                                                                                                                                                                                Returns true if the editor is set to read-only mode.

                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                Returns the value indicating how fast the mouse scroll speed is.

                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                   

                                                                                                                                                                                                                                                                                                                                Returns the value indicating how fast the mouse scroll speed is.

                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                Returns the currently highlighted selection.

                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                   

                                                                                                                                                                                                                                                                                                                                Returns the currently highlighted selection.

                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                  • Editor.getSelectionStyle()

                                                                                                                                                                                                                                                                                                                                  Returns the current selection style.

                                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                                     

                                                                                                                                                                                                                                                                                                                                  Returns the current selection style.

                                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                                  Returns the current session being used.

                                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                                     

                                                                                                                                                                                                                                                                                                                                  Returns the current session being used.

                                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                                  Returns true if the fold widgets are shown.

                                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                                     

                                                                                                                                                                                                                                                                                                                                  Returns true if the fold widgets are shown.

                                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                                  Returns true if invisible characters are being shown.

                                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                                     

                                                                                                                                                                                                                                                                                                                                  Returns true if invisible characters are being shown.

                                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                                  Returns true if the print margin is being shown.

                                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                                     

                                                                                                                                                                                                                                                                                                                                  Returns true if the print margin is being shown.

                                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                                  Returns the current session's content.

                                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                                     

                                                                                                                                                                                                                                                                                                                                  Returns the current session's content.

                                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                                  Moves the cursor to the specified line number, and also into the indiciated column.

                                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                                     

                                                                                                                                                                                                                                                                                                                                  Moves the cursor to the specified line number, and also into the indiciated column.

                                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                                  Arguments

                                                                                                                                                                                                                                                                                                                                  lineNumberNumberRequired. The line number to go to
                                                                                                                                                                                                                                                                                                                                  columnNumberRequired. A column number to go to
                                                                                                                                                                                                                                                                                                                                  animateBooleanRequired. If true animates scolling
                                                                                                                                                                                                                                                                                                                                    • Editor.gotoPageDown()

                                                                                                                                                                                                                                                                                                                                    Shifts the document to wherever "page down" is, as well as moving the cursor position.

                                                                                                                                                                                                                                                                                                                                    +

                                                                                                                                                                                                                                                                                                                                       

                                                                                                                                                                                                                                                                                                                                    Shifts the document to wherever "page down" is, as well as moving the cursor position.

                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                      • Editor.gotoPageUp()

                                                                                                                                                                                                                                                                                                                                      Shifts the document to wherever "page up" is, as well as moving the cursor position.

                                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                                         

                                                                                                                                                                                                                                                                                                                                      Shifts the document to wherever "page up" is, as well as moving the cursor position.

                                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                                      Inserts text into wherever the cursor is pointing.

                                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                                         

                                                                                                                                                                                                                                                                                                                                      Inserts text into wherever the cursor is pointing.

                                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                                      Arguments

                                                                                                                                                                                                                                                                                                                                      textStringRequired. The new text to add

                                                                                                                                                                                                                                                                                                                                      Returns true if the current textInput is in focus.

                                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                                         

                                                                                                                                                                                                                                                                                                                                      Returns true if the current textInput is in focus.

                                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                                      Indicates if the entire row is currently visible on the screen.

                                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                                         

                                                                                                                                                                                                                                                                                                                                      Indicates if the entire row is currently visible on the screen.

                                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                                      Arguments

                                                                                                                                                                                                                                                                                                                                      rowNumberRequired. The row to check

                                                                                                                                                                                                                                                                                                                                      Indicates if the row is currently visible on the screen.

                                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                                         

                                                                                                                                                                                                                                                                                                                                      Indicates if the row is currently visible on the screen.

                                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                                      Arguments

                                                                                                                                                                                                                                                                                                                                      rowNumberRequired. The row to check
                                                                                                                                                                                                                                                                                                                                        • Editor.jumpToMatching()

                                                                                                                                                                                                                                                                                                                                        Moves the cursor's row and column to the next matching bracket.

                                                                                                                                                                                                                                                                                                                                        +

                                                                                                                                                                                                                                                                                                                                           

                                                                                                                                                                                                                                                                                                                                        Moves the cursor's row and column to the next matching bracket.

                                                                                                                                                                                                                                                                                                                                        +

                                                                                                                                                                                                                                                                                                                                        Moves the cursor to the specified row and column. Note that this does not de-select the current selection.

                                                                                                                                                                                                                                                                                                                                        +

                                                                                                                                                                                                                                                                                                                                           

                                                                                                                                                                                                                                                                                                                                        Moves the cursor to the specified row and column. Note that this does not de-select the current selection.

                                                                                                                                                                                                                                                                                                                                        +

                                                                                                                                                                                                                                                                                                                                        Arguments

                                                                                                                                                                                                                                                                                                                                        rowNumberRequired. The new row number
                                                                                                                                                                                                                                                                                                                                        columnNumberRequired. The new column number

                                                                                                                                                                                                                                                                                                                                        Moves the cursor to the position indicated by pos.row and pos.column.

                                                                                                                                                                                                                                                                                                                                        +

                                                                                                                                                                                                                                                                                                                                           

                                                                                                                                                                                                                                                                                                                                        Moves the cursor to the position indicated by pos.row and pos.column.

                                                                                                                                                                                                                                                                                                                                        +

                                                                                                                                                                                                                                                                                                                                        Arguments

                                                                                                                                                                                                                                                                                                                                        posObjectRequired. An object with two properties, row and column

                                                                                                                                                                                                                                                                                                                                        Shifts all the selected lines down one row.

                                                                                                                                                                                                                                                                                                                                        +

                                                                                                                                                                                                                                                                                                                                           

                                                                                                                                                                                                                                                                                                                                        Shifts all the selected lines down one row.

                                                                                                                                                                                                                                                                                                                                        +

                                                                                                                                                                                                                                                                                                                                        Shifts all the selected lines up one row.

                                                                                                                                                                                                                                                                                                                                        +

                                                                                                                                                                                                                                                                                                                                           

                                                                                                                                                                                                                                                                                                                                        Shifts all the selected lines up one row.

                                                                                                                                                                                                                                                                                                                                        +

                                                                                                                                                                                                                                                                                                                                        Moves a range of text from the given range to the given position. toPosition is an object that looks like this:

                                                                                                                                                                                                                                                                                                                                        +

                                                                                                                                                                                                                                                                                                                                           

                                                                                                                                                                                                                                                                                                                                        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 }

                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                           

                                                                                                                                                                                                                                                                                                                                        { row: newRowLocation, column: newColumnLocation }

                                                                                                                                                                                                                                                                                                                                        Arguments

                                                                                                                                                                                                                                                                                                                                        fromRangeRangeRequired. The range of text you want moved within the document
                                                                                                                                                                                                                                                                                                                                        toPositionObjectRequired. The location (row and column) where you want to move the text to
                                                                                                                                                                                                                                                                                                                                          • Editor.navigateDown(Number times)

                                                                                                                                                                                                                                                                                                                                          Moves the cursor down in the document the specified number of times. Note that this does de-select the current selection.

                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                          Moves the cursor down in the document the specified number of times. Note that this does de-select the current selection.

                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                             

                                                                                                                                                                                                                                                                                                                                          Arguments

                                                                                                                                                                                                                                                                                                                                          timesNumberRequired. The number of times to change navigation
                                                                                                                                                                                                                                                                                                                                            • Editor.navigateFileEnd()

                                                                                                                                                                                                                                                                                                                                            Moves the cursor to the end of the current file. Note that this does de-select the current selection.

                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                            Moves the cursor to the end of the current file. Note that this does de-select the current selection.

                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                               

                                                                                                                                                                                                                                                                                                                                              • Editor.navigateFileStart()

                                                                                                                                                                                                                                                                                                                                              Moves the cursor to the start of the current file. Note that this does de-select the current selection.

                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                              Moves the cursor to the start of the current file. Note that this does de-select the current selection.

                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                 

                                                                                                                                                                                                                                                                                                                                                • Editor.navigateLeft(Number times)

                                                                                                                                                                                                                                                                                                                                                Moves the cursor left in the document the specified number of times. Note that this does de-select the current selection.

                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                Moves the cursor left in the document the specified number of times. Note that this does de-select the current selection.

                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                   

                                                                                                                                                                                                                                                                                                                                                Arguments

                                                                                                                                                                                                                                                                                                                                                timesNumberRequired. The number of times to change navigation
                                                                                                                                                                                                                                                                                                                                                  • Editor.navigateLineEnd()

                                                                                                                                                                                                                                                                                                                                                  Moves the cursor to the end of the current line. Note that this does de-select the current selection.

                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                  Moves the cursor to the end of the current line. Note that this does de-select the current selection.

                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                     

                                                                                                                                                                                                                                                                                                                                                    • Editor.navigateLineStart()

                                                                                                                                                                                                                                                                                                                                                    Moves the cursor to the start of the current line. Note that this does de-select the current selection.

                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                    Moves the cursor to the start of the current line. Note that this does de-select the current selection.

                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                       

                                                                                                                                                                                                                                                                                                                                                      • Editor.navigateRight(Number times)

                                                                                                                                                                                                                                                                                                                                                      Moves the cursor right in the document the specified number of times. Note that this does de-select the current selection.

                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                      Moves the cursor right in the document the specified number of times. Note that this does de-select the current selection.

                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                         

                                                                                                                                                                                                                                                                                                                                                      Arguments

                                                                                                                                                                                                                                                                                                                                                      timesNumberRequired. The number of times to change navigation

                                                                                                                                                                                                                                                                                                                                                      Moves the cursor to the specified row and column. Note that this does de-select the current selection.

                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                      Moves the cursor to the specified row and column. Note that this does de-select the current selection.

                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                         

                                                                                                                                                                                                                                                                                                                                                      Arguments

                                                                                                                                                                                                                                                                                                                                                      rowNumberRequired. The new row number
                                                                                                                                                                                                                                                                                                                                                      columnNumberRequired. The new column number
                                                                                                                                                                                                                                                                                                                                                        • Editor.navigateUp(Number times)

                                                                                                                                                                                                                                                                                                                                                        Moves the cursor up in the document the specified number of times. Note that this does de-select the current selection.

                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                        Moves the cursor up in the document the specified number of times. Note that this does de-select the current selection.

                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                           

                                                                                                                                                                                                                                                                                                                                                        Arguments

                                                                                                                                                                                                                                                                                                                                                        timesNumberRequired. The number of times to change navigation
                                                                                                                                                                                                                                                                                                                                                          • Editor.navigateWordLeft()

                                                                                                                                                                                                                                                                                                                                                          Moves the cursor to the word immediately to the left of the current position. Note that this does de-select the current selection.

                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                          Moves the cursor to the word immediately to the left of the current position. Note that this does de-select the current selection.

                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                             

                                                                                                                                                                                                                                                                                                                                                            • Editor.navigateWordRight()

                                                                                                                                                                                                                                                                                                                                                            Moves the cursor to the word immediately to the right of the current position. Note that this does de-select the current selection.

                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                            Moves the cursor to the word immediately to the right of the current position. Note that this does de-select the current selection.

                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                               

                                                                                                                                                                                                                                                                                                                                                              • Editor.onCopy()

                                                                                                                                                                                                                                                                                                                                                              Called whenever a text "copy" happens.

                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                              Called whenever a text "copy" happens.

                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                 

                                                                                                                                                                                                                                                                                                                                                                • Editor.onCut()

                                                                                                                                                                                                                                                                                                                                                                called whenever a text "cut" happens.

                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                called whenever a text "cut" happens.

                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                   

                                                                                                                                                                                                                                                                                                                                                                  • Editor.onPaste()

                                                                                                                                                                                                                                                                                                                                                                  called whenever a text "paste" happens.

                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                  called whenever a text "paste" happens.

                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                     

                                                                                                                                                                                                                                                                                                                                                                  Perform a redo operation on the document, reimplementing the last change.

                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                  Perform a redo operation on the document, reimplementing the last change.

                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                     

                                                                                                                                                                                                                                                                                                                                                                  Removes words of text from the editor. A "word" is defined as a string of characters bookended by whitespace.

                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                  Removes words of text from the editor. A "word" is defined as a string of characters bookended by whitespace.

                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                     

                                                                                                                                                                                                                                                                                                                                                                  Arguments

                                                                                                                                                                                                                                                                                                                                                                  dirStringRequired. The direction of the deletion to occur, either "left" or "right"

                                                                                                                                                                                                                                                                                                                                                                  Removes all the lines in the current selection

                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                  Removes all the lines in the current selection

                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                     

                                                                                                                                                                                                                                                                                                                                                                    • Editor.removeSelectionMarker(Range range)

                                                                                                                                                                                                                                                                                                                                                                    Removes the selection marker.

                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                    Removes the selection marker.

                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                       

                                                                                                                                                                                                                                                                                                                                                                    Arguments

                                                                                                                                                                                                                                                                                                                                                                    rangeRangeRequired. The selection range added with addSelectionMarker.
                                                                                                                                                                                                                                                                                                                                                                      • Editor.removeToLineEnd()

                                                                                                                                                                                                                                                                                                                                                                      Removes all the words to the right of the current selection, until the end of the line.

                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                      Removes all the words to the right of the current selection, until the end of the line.

                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                         

                                                                                                                                                                                                                                                                                                                                                                        • Editor.removeToLineStart()

                                                                                                                                                                                                                                                                                                                                                                        Removes all the words to the left of the current selection, until the start of the line.

                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                        Removes all the words to the left of the current selection, until the start of the line.

                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                           

                                                                                                                                                                                                                                                                                                                                                                          • Editor.removeWordLeft()

                                                                                                                                                                                                                                                                                                                                                                          Removes the word directly to the left of the current selection.

                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                          Removes the word directly to the left of the current selection.

                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                             

                                                                                                                                                                                                                                                                                                                                                                            • Editor.removeWordRight()

                                                                                                                                                                                                                                                                                                                                                                            Removes the word directly to the right of the current selection.

                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                            Removes the word directly to the right of the current selection.

                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                               

                                                                                                                                                                                                                                                                                                                                                                            Replaces the first occurance of options.needle with the value in replacement.

                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                            Replaces the first occurance of options.needle with the value in replacement.

                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                               

                                                                                                                                                                                                                                                                                                                                                                            Arguments

                                                                                                                                                                                                                                                                                                                                                                            replacementStringRequired. The text to replace with
                                                                                                                                                                                                                                                                                                                                                                            optionsObjectRequired. The Search options to use

                                                                                                                                                                                                                                                                                                                                                                            Replaces all occurances of options.needle with the value in replacement.

                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                            Replaces all occurances of options.needle with the value in replacement.

                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                               

                                                                                                                                                                                                                                                                                                                                                                            Arguments

                                                                                                                                                                                                                                                                                                                                                                            replacementStringRequired. The text to replace with
                                                                                                                                                                                                                                                                                                                                                                            optionsObjectRequired. The Search options to use

                                                                                                                                                                                                                                                                                                                                                                            Triggers a resize of the editor.

                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                            Triggers a resize of the editor.

                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                               

                                                                                                                                                                                                                                                                                                                                                                              • Editor.scrollPageDown()

                                                                                                                                                                                                                                                                                                                                                                              Scrolls the document to wherever "page down" is, without changing the cursor position.

                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                              Scrolls the document to wherever "page down" is, without changing the cursor position.

                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                 

                                                                                                                                                                                                                                                                                                                                                                                • Editor.scrollPageUp()

                                                                                                                                                                                                                                                                                                                                                                                Scrolls the document to wherever "page up" is, without changing the cursor position.

                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                Scrolls the document to wherever "page up" is, without changing the cursor position.

                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                   

                                                                                                                                                                                                                                                                                                                                                                                TODO scrolls a to line, if center == true, puts line in middle of screen or attempts to)

                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                TODO scrolls a to line, if center == true, puts line in middle of screen or attempts to)

                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                   

                                                                                                                                                                                                                                                                                                                                                                                Arguments

                                                                                                                                                                                                                                                                                                                                                                                lineNumberRequired. The line to scroll to
                                                                                                                                                                                                                                                                                                                                                                                centerBooleanRequired. If true
                                                                                                                                                                                                                                                                                                                                                                                animateBooleanRequired. If true animates scrolling
                                                                                                                                                                                                                                                                                                                                                                                callbackFunctionRequired. Function to be called when the animation has finished

                                                                                                                                                                                                                                                                                                                                                                                Moves the editor to the specified row.

                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                Moves the editor to the specified row.

                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                   

                                                                                                                                                                                                                                                                                                                                                                                Arguments

                                                                                                                                                                                                                                                                                                                                                                                rowNumberRequired. The row to move to

                                                                                                                                                                                                                                                                                                                                                                                Selects all the text in editor.

                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                Selects all the text in editor.

                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                   

                                                                                                                                                                                                                                                                                                                                                                                Finds the next occurence of text in an active selection and adds it to the selections.

                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                Finds the next occurence of text in an active selection and adds it to the selections.

                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                   

                                                                                                                                                                                                                                                                                                                                                                                Arguments

                                                                                                                                                                                                                                                                                                                                                                                dirNumberRequired. The direction of lines to select: -1 for up, 1 for down
                                                                                                                                                                                                                                                                                                                                                                                skipBooleanRequired. If true, removes the active selection range

                                                                                                                                                                                                                                                                                                                                                                                Adds a cursor above or below the active cursor.

                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                Adds a cursor above or below the active cursor.

                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                   

                                                                                                                                                                                                                                                                                                                                                                                Arguments

                                                                                                                                                                                                                                                                                                                                                                                dirNumberRequired. The direction of lines to select: -1 for up, 1 for down
                                                                                                                                                                                                                                                                                                                                                                                skipBooleanRequired. If true, removes the active selection range
                                                                                                                                                                                                                                                                                                                                                                                  • Editor.selectPageDown()

                                                                                                                                                                                                                                                                                                                                                                                  Selects the text from the current position of the document until where a "page down" finishes.

                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                  Selects the text from the current position of the document until where a "page down" finishes.

                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                     

                                                                                                                                                                                                                                                                                                                                                                                    • Editor.selectPageUp()

                                                                                                                                                                                                                                                                                                                                                                                    Selects the text from the current position of the document until where a "page up" finishes.

                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                    Selects the text from the current position of the document until where a "page up" finishes.

                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                       

                                                                                                                                                                                                                                                                                                                                                                                      • Editor.setBehavioursEnabled(Boolean enabled)

                                                                                                                                                                                                                                                                                                                                                                                      Specifies whether to use behaviors or not. "Behaviors" in this case is the auto-pairing of special characters, like quotation marks, parenthesis, or brackets.

                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                      Specifies whether to use behaviors or not. "Behaviors" in this case is the auto-pairing of special characters, like quotation marks, parenthesis, or brackets.

                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                         

                                                                                                                                                                                                                                                                                                                                                                                      Arguments

                                                                                                                                                                                                                                                                                                                                                                                      enabledBooleanRequired. Enables or disables behaviors
                                                                                                                                                                                                                                                                                                                                                                                        • Editor.setDragDelay(Number dragDelay)

                                                                                                                                                                                                                                                                                                                                                                                        Sets the delay (in milliseconds) of the mouse drag.

                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                        Sets the delay (in milliseconds) of the mouse drag.

                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                           

                                                                                                                                                                                                                                                                                                                                                                                        Arguments

                                                                                                                                                                                                                                                                                                                                                                                        dragDelayNumberRequired. A value indicating the new delay
                                                                                                                                                                                                                                                                                                                                                                                          • Editor.setFontSize(Number size)

                                                                                                                                                                                                                                                                                                                                                                                          Set a new font size (in pixels) for the editor text.

                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                          Set a new font size (in pixels) for the editor text.

                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                             

                                                                                                                                                                                                                                                                                                                                                                                          Arguments

                                                                                                                                                                                                                                                                                                                                                                                          sizeNumberRequired. A font size
                                                                                                                                                                                                                                                                                                                                                                                            • Editor.setHighlightActiveLine(Boolean shouldHighlight)

                                                                                                                                                                                                                                                                                                                                                                                            Determines whether or not the current line should be highlighted.

                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                            Determines whether or not the current line should be highlighted.

                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                               

                                                                                                                                                                                                                                                                                                                                                                                            Arguments

                                                                                                                                                                                                                                                                                                                                                                                            shouldHighlightBooleanRequired. Set to true to highlight the current line
                                                                                                                                                                                                                                                                                                                                                                                              • Editor.setHighlightSelectedWord(Boolean shouldHighlight)

                                                                                                                                                                                                                                                                                                                                                                                              Determines if the currently selected word should be highlighted.

                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                              Determines if the currently selected word should be highlighted.

                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                 

                                                                                                                                                                                                                                                                                                                                                                                              Arguments

                                                                                                                                                                                                                                                                                                                                                                                              shouldHighlightBooleanRequired. Set to true to highlight the currently selected word
                                                                                                                                                                                                                                                                                                                                                                                                • Editor.setKeyboardHandler(keyboardHandler)

                                                                                                                                                                                                                                                                                                                                                                                                Sets a new keyboard handler.

                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                Sets a new keyboard handler.

                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                   

                                                                                                                                                                                                                                                                                                                                                                                                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.

                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                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.

                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                   

                                                                                                                                                                                                                                                                                                                                                                                                Arguments

                                                                                                                                                                                                                                                                                                                                                                                                overwriteBooleanRequired. Defines wheter or not to set overwrites
                                                                                                                                                                                                                                                                                                                                                                                                  • Editor.setPrintMarginColumn(Number showPrintMargin)

                                                                                                                                                                                                                                                                                                                                                                                                  Sets the column defining where the print margin should be.

                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                  Sets the column defining where the print margin should be.

                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                     

                                                                                                                                                                                                                                                                                                                                                                                                  Arguments

                                                                                                                                                                                                                                                                                                                                                                                                  showPrintMarginNumberRequired. Specifies the new print margin
                                                                                                                                                                                                                                                                                                                                                                                                    • Editor.setReadOnly(Boolean readOnly)

                                                                                                                                                                                                                                                                                                                                                                                                    If readOnly is true, then the editor is set to read-only mode, and none of the content can change.

                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                    If readOnly is true, then the editor is set to read-only mode, and none of the content can change.

                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                       

                                                                                                                                                                                                                                                                                                                                                                                                    Arguments

                                                                                                                                                                                                                                                                                                                                                                                                    readOnlyBooleanRequired. Specifies whether the editor can be modified or not
                                                                                                                                                                                                                                                                                                                                                                                                      • Editor.setScrollSpeed(Number speed)

                                                                                                                                                                                                                                                                                                                                                                                                      Sets how fast the mouse scrolling should do.

                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                      Sets how fast the mouse scrolling should do.

                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                         

                                                                                                                                                                                                                                                                                                                                                                                                      Arguments

                                                                                                                                                                                                                                                                                                                                                                                                      speedNumberRequired. A value indicating the new speed
                                                                                                                                                                                                                                                                                                                                                                                                        • Editor.setSelectionStyle(String style)

                                                                                                                                                                                                                                                                                                                                                                                                        Indicates how selections should occur. By default, selections are set to "line". This function also emits the 'changeSelectionStyle' event.

                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                        Indicates how selections should occur. By default, selections are set to "line". This function also emits the 'changeSelectionStyle' event.

                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                           

                                                                                                                                                                                                                                                                                                                                                                                                        Arguments

                                                                                                                                                                                                                                                                                                                                                                                                        styleStringRequired. The new selection style

                                                                                                                                                                                                                                                                                                                                                                                                        Sets a new editsession to use. This method also emits the 'changeSession' event.

                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                        Sets a new editsession to use. This method also emits the 'changeSession' event.

                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                           

                                                                                                                                                                                                                                                                                                                                                                                                        Arguments

                                                                                                                                                                                                                                                                                                                                                                                                        sessionEditSessionRequired. The new session to use
                                                                                                                                                                                                                                                                                                                                                                                                          • Editor.setShowFoldWidgets(Boolean show)

                                                                                                                                                                                                                                                                                                                                                                                                          Indicates whether the fold widgets are shown or not.

                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                          Indicates whether the fold widgets are shown or not.

                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                             

                                                                                                                                                                                                                                                                                                                                                                                                          Arguments

                                                                                                                                                                                                                                                                                                                                                                                                          showBooleanRequired. Specifies whether the fold widgets are shown
                                                                                                                                                                                                                                                                                                                                                                                                            • Editor.setShowInvisibles(Boolean showInvisibles)

                                                                                                                                                                                                                                                                                                                                                                                                            If showInvisibiles is set to true, invisible characters—like spaces or new lines—are show in the editor.

                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                            If showInvisibiles is set to true, invisible characters—like spaces or new lines—are show in the editor.

                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                               

                                                                                                                                                                                                                                                                                                                                                                                                            Arguments

                                                                                                                                                                                                                                                                                                                                                                                                            showInvisiblesBooleanRequired. Specifies whether or not to show invisible characters
                                                                                                                                                                                                                                                                                                                                                                                                              • Editor.setShowPrintMargin(Boolean showPrintMargin)

                                                                                                                                                                                                                                                                                                                                                                                                              If showPrintMargin is set to true, the print margin is shown in the editor.

                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                              If showPrintMargin is set to true, the print margin is shown in the editor.

                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                 

                                                                                                                                                                                                                                                                                                                                                                                                              Arguments

                                                                                                                                                                                                                                                                                                                                                                                                              showPrintMarginBooleanRequired. Specifies whether or not to show the print margin

                                                                                                                                                                                                                                                                                                                                                                                                              Adds a new class, style, to the editor.

                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                              Adds a new class, style, to the editor.

                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                 

                                                                                                                                                                                                                                                                                                                                                                                                                • Editor.setTheme(theme)

                                                                                                                                                                                                                                                                                                                                                                                                                Sets a new theme for the editor. theme should exist, and be a directory path, like ace/theme/textmate.

                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                Sets a new theme for the editor. theme should exist, and be a directory path, like ace/theme/textmate.

                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                   

                                                                                                                                                                                                                                                                                                                                                                                                                Sets the current document to val.

                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                Sets the current document to val.

                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                   

                                                                                                                                                                                                                                                                                                                                                                                                                Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                valStringRequired. The new value to set for the document
                                                                                                                                                                                                                                                                                                                                                                                                                cursorPosNumberRequired. Where to set the new value. undefined or 0 is selectAll, -1 is at the document start, and 1 is at the end
                                                                                                                                                                                                                                                                                                                                                                                                                  • Editor.splitLine()

                                                                                                                                                                                                                                                                                                                                                                                                                  Splits the line at the current selection (by inserting an '\n').

                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                  Splits the line at the current selection (by inserting an '\n').

                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                     

                                                                                                                                                                                                                                                                                                                                                                                                                    • Editor.toggleCommentLines()

                                                                                                                                                                                                                                                                                                                                                                                                                    Given the currently selected range, this function either comments all lines or uncomments all lines (depending on whether it's commented or not).

                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                    Given the currently selected range, this function either comments all lines or uncomments all lines (depending on whether it's commented or not).

                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                       

                                                                                                                                                                                                                                                                                                                                                                                                                    Sets the value of overwrite to the opposite of whatever it currently is.

                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                    Sets the value of overwrite to the opposite of whatever it currently is.

                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                       

                                                                                                                                                                                                                                                                                                                                                                                                                      • Editor.toLowerCase()

                                                                                                                                                                                                                                                                                                                                                                                                                      Converts the current selection entirely into lowercase.

                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                      Converts the current selection entirely into lowercase.

                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                         

                                                                                                                                                                                                                                                                                                                                                                                                                        • Editor.toUpperCase()

                                                                                                                                                                                                                                                                                                                                                                                                                        Converts the current selection entirely into uppercase.

                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                        Converts the current selection entirely into uppercase.

                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                           

                                                                                                                                                                                                                                                                                                                                                                                                                          • Editor.transposeLetters()

                                                                                                                                                                                                                                                                                                                                                                                                                          Transposes current line.

                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                          Transposes current line.

                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                             

                                                                                                                                                                                                                                                                                                                                                                                                                            • Editor.transposeSelections(Number dir)

                                                                                                                                                                                                                                                                                                                                                                                                                            Transposes the selected ranges.

                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                            Transposes the selected ranges.

                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                               

                                                                                                                                                                                                                                                                                                                                                                                                                            Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                            dirNumberRequired. The direction to rotate selections

                                                                                                                                                                                                                                                                                                                                                                                                                            Perform an undo operation on the document, reverting the last change. Returns the range of the undo.

                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                            Perform an undo operation on the document, reverting the last change. Returns the range of the undo.

                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                               

                                                                                                                                                                                                                                                                                                                                                                                                                            Removes the class style from the editor.

                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                            Removes the class style from the editor.

                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                               

                                                                                                                                                                                                                                                                                                                                                                                                                              • Editor.updateSelectionMarkers()

                                                                                                                                                                                                                                                                                                                                                                                                                              Updates the cursor and marker layers.

                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                              Updates the cursor and marker layers.

                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                 

                                                                                                                                                                                                                                                                                                                                                                                                                              +

                                                                                                                                                                                                                                                                                                                                                                                                                                 

                                                                                                                                                                                                                                                                                                                                                                                                                              Moves the cursor down in the document the specified number of times. Note that this does de-select the current selection.

                                                                                                                                                                                                                                                                                                                                                                                                                              +

                                                                                                                                                                                                                                                                                                                                                                                                                              Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                              timesNumberRequired. The number of times to change navigation
                                                                                                                                                                                                                                                                                                                                                                                                                                • Editor.navigateFileEnd()

                                                                                                                                                                                                                                                                                                                                                                                                                                Moves the cursor to the end of the current file. Note that this does de-select the current selection.

                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                   

                                                                                                                                                                                                                                                                                                                                                                                                                                Moves the cursor to the end of the current file. Note that this does de-select the current selection.

                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                  • Editor.navigateFileStart()

                                                                                                                                                                                                                                                                                                                                                                                                                                  Moves the cursor to the start of the current file. Note that this does de-select the current selection.

                                                                                                                                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                                                                                                                                     

                                                                                                                                                                                                                                                                                                                                                                                                                                  Moves the cursor to the start of the current file. Note that this does de-select the current selection.

                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                    • Editor.navigateLeft(Number times)

                                                                                                                                                                                                                                                                                                                                                                                                                                    Moves the cursor left in the document the specified number of times. Note that this does de-select the current selection.

                                                                                                                                                                                                                                                                                                                                                                                                                                    +

                                                                                                                                                                                                                                                                                                                                                                                                                                       

                                                                                                                                                                                                                                                                                                                                                                                                                                    Moves the cursor left in the document the specified number of times. Note that this does de-select the current selection.

                                                                                                                                                                                                                                                                                                                                                                                                                                    +

                                                                                                                                                                                                                                                                                                                                                                                                                                    Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                    timesNumberRequired. The number of times to change navigation
                                                                                                                                                                                                                                                                                                                                                                                                                                      • Editor.navigateLineEnd()

                                                                                                                                                                                                                                                                                                                                                                                                                                      Moves the cursor to the end of the current line. Note that this does de-select the current selection.

                                                                                                                                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                                                                                                                                         

                                                                                                                                                                                                                                                                                                                                                                                                                                      Moves the cursor to the end of the current line. Note that this does de-select the current selection.

                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                        • Editor.navigateLineStart()

                                                                                                                                                                                                                                                                                                                                                                                                                                        Moves the cursor to the start of the current line. Note that this does de-select the current selection.

                                                                                                                                                                                                                                                                                                                                                                                                                                        +

                                                                                                                                                                                                                                                                                                                                                                                                                                           

                                                                                                                                                                                                                                                                                                                                                                                                                                        Moves the cursor to the start of the current line. Note that this does de-select the current selection.

                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                          • Editor.navigateRight(Number times)

                                                                                                                                                                                                                                                                                                                                                                                                                                          Moves the cursor right in the document the specified number of times. Note that this does de-select the current selection.

                                                                                                                                                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                                                                                                                                                             

                                                                                                                                                                                                                                                                                                                                                                                                                                          Moves the cursor right in the document the specified number of times. Note that this does de-select the current selection.

                                                                                                                                                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                                                                                                                                                          Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                          timesNumberRequired. The number of times to change navigation

                                                                                                                                                                                                                                                                                                                                                                                                                                          Moves the cursor to the specified row and column. Note that this does de-select the current selection.

                                                                                                                                                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                                                                                                                                                             

                                                                                                                                                                                                                                                                                                                                                                                                                                          Moves the cursor to the specified row and column. Note that this does de-select the current selection.

                                                                                                                                                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                                                                                                                                                          Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                          rowNumberRequired. The new row number
                                                                                                                                                                                                                                                                                                                                                                                                                                          columnNumberRequired. The new column number
                                                                                                                                                                                                                                                                                                                                                                                                                                            • Editor.navigateUp(Number times)

                                                                                                                                                                                                                                                                                                                                                                                                                                            Moves the cursor up in the document the specified number of times. Note that this does de-select the current selection.

                                                                                                                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                                                                                                                               

                                                                                                                                                                                                                                                                                                                                                                                                                                            Moves the cursor up in the document the specified number of times. Note that this does de-select the current selection.

                                                                                                                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                                                                                                                            Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                            timesNumberRequired. The number of times to change navigation
                                                                                                                                                                                                                                                                                                                                                                                                                                              • Editor.navigateWordLeft()

                                                                                                                                                                                                                                                                                                                                                                                                                                              Moves the cursor to the word immediately to the left of the current position. Note that this does de-select the current selection.

                                                                                                                                                                                                                                                                                                                                                                                                                                              +

                                                                                                                                                                                                                                                                                                                                                                                                                                                 

                                                                                                                                                                                                                                                                                                                                                                                                                                              Moves the cursor to the word immediately to the left of the current position. Note that this does de-select the current selection.

                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                • Editor.navigateWordRight()

                                                                                                                                                                                                                                                                                                                                                                                                                                                Moves the cursor to the word immediately to the right of the current position. Note that this does de-select the current selection.

                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                   

                                                                                                                                                                                                                                                                                                                                                                                                                                                Moves the cursor to the word immediately to the right of the current position. Note that this does de-select the current selection.

                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                  • Editor.onCopy()

                                                                                                                                                                                                                                                                                                                                                                                                                                                  Called whenever a text "copy" happens.

                                                                                                                                                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                                                                                                                                                     

                                                                                                                                                                                                                                                                                                                                                                                                                                                  Called whenever a text "copy" happens.

                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                    • Editor.onCut()

                                                                                                                                                                                                                                                                                                                                                                                                                                                    called whenever a text "cut" happens.

                                                                                                                                                                                                                                                                                                                                                                                                                                                    +

                                                                                                                                                                                                                                                                                                                                                                                                                                                       

                                                                                                                                                                                                                                                                                                                                                                                                                                                    called whenever a text "cut" happens.

                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                      • Editor.onPaste()

                                                                                                                                                                                                                                                                                                                                                                                                                                                      called whenever a text "paste" happens.

                                                                                                                                                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                                                                                                                                                         

                                                                                                                                                                                                                                                                                                                                                                                                                                                      called whenever a text "paste" happens.

                                                                                                                                                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                                                                                                                                                      Perform a redo operation on the document, reimplementing the last change.

                                                                                                                                                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                                                                                                                                                         

                                                                                                                                                                                                                                                                                                                                                                                                                                                      Perform a redo operation on the document, reimplementing the last change.

                                                                                                                                                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                                                                                                                                                      Removes words of text from the editor. A "word" is defined as a string of characters bookended by whitespace.

                                                                                                                                                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                                                                                                                                                         

                                                                                                                                                                                                                                                                                                                                                                                                                                                      Removes words of text from the editor. A "word" is defined as a string of characters bookended by whitespace.

                                                                                                                                                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                                                                                                                                                      Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                      dirStringRequired. The direction of the deletion to occur, either "left" or "right"

                                                                                                                                                                                                                                                                                                                                                                                                                                                      Removes all the lines in the current selection

                                                                                                                                                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                                                                                                                                                         

                                                                                                                                                                                                                                                                                                                                                                                                                                                      Removes all the lines in the current selection

                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                        • Editor.removeSelectionMarker(Range range)

                                                                                                                                                                                                                                                                                                                                                                                                                                                        Removes the selection marker.

                                                                                                                                                                                                                                                                                                                                                                                                                                                        +

                                                                                                                                                                                                                                                                                                                                                                                                                                                           

                                                                                                                                                                                                                                                                                                                                                                                                                                                        Removes the selection marker.

                                                                                                                                                                                                                                                                                                                                                                                                                                                        +

                                                                                                                                                                                                                                                                                                                                                                                                                                                        Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                        rangeRangeRequired. The selection range added with addSelectionMarker.
                                                                                                                                                                                                                                                                                                                                                                                                                                                          • Editor.removeToLineEnd()

                                                                                                                                                                                                                                                                                                                                                                                                                                                          Removes all the words to the right of the current selection, until the end of the line.

                                                                                                                                                                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                                                                                                                                                                             

                                                                                                                                                                                                                                                                                                                                                                                                                                                          Removes all the words to the right of the current selection, until the end of the line.

                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Editor.removeToLineStart()

                                                                                                                                                                                                                                                                                                                                                                                                                                                            Removes all the words to the left of the current selection, until the start of the line.

                                                                                                                                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                                                                                                                                               

                                                                                                                                                                                                                                                                                                                                                                                                                                                            Removes all the words to the left of the current selection, until the start of the line.

                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                              • Editor.removeWordLeft()

                                                                                                                                                                                                                                                                                                                                                                                                                                                              Removes the word directly to the left of the current selection.

                                                                                                                                                                                                                                                                                                                                                                                                                                                              +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                 

                                                                                                                                                                                                                                                                                                                                                                                                                                                              Removes the word directly to the left of the current selection.

                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                • Editor.removeWordRight()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                Removes the word directly to the right of the current selection.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

                                                                                                                                                                                                                                                                                                                                                                                                                                                                Removes the word directly to the right of the current selection.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                Replaces the first occurance of options.needle with the value in replacement.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

                                                                                                                                                                                                                                                                                                                                                                                                                                                                Replaces the first occurance of options.needle with the value in replacement.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                replacementStringRequired. The text to replace with
                                                                                                                                                                                                                                                                                                                                                                                                                                                                optionsObjectRequired. The Search options to use

                                                                                                                                                                                                                                                                                                                                                                                                                                                                Replaces all occurances of options.needle with the value in replacement.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

                                                                                                                                                                                                                                                                                                                                                                                                                                                                Replaces all occurances of options.needle with the value in replacement.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                replacementStringRequired. The text to replace with
                                                                                                                                                                                                                                                                                                                                                                                                                                                                optionsObjectRequired. The Search options to use

                                                                                                                                                                                                                                                                                                                                                                                                                                                                Triggers a resize of the editor.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

                                                                                                                                                                                                                                                                                                                                                                                                                                                                Triggers a resize of the editor.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • Editor.scrollPageDown()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Scrolls the document to wherever "page down" is, without changing the cursor position.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                     

                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Scrolls the document to wherever "page down" is, without changing the cursor position.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • Editor.scrollPageUp()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Scrolls the document to wherever "page up" is, without changing the cursor position.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Scrolls the document to wherever "page up" is, without changing the cursor position.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                    TODO scrolls a to line, if center == true, puts line in middle of screen or attempts to)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

                                                                                                                                                                                                                                                                                                                                                                                                                                                                    TODO scrolls a to line, if center == true, puts line in middle of screen or attempts to)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                    lineNumberRequired. The line to scroll to
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    centerBooleanRequired. If true
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    animateBooleanRequired. If true animates scrolling
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    callbackFunctionRequired. Function to be called when the animation has finished

                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Moves the editor to the specified row.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Moves the editor to the specified row.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                    rowNumberRequired. The row to move to

                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Selects all the text in editor.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Selects all the text in editor.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Finds the next occurence of text in an active selection and adds it to the selections.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Finds the next occurence of text in an active selection and adds it to the selections.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                    dirNumberRequired. The direction of lines to select: -1 for up, 1 for down
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    skipBooleanRequired. If true, removes the active selection range

                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Adds a cursor above or below the active cursor.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Adds a cursor above or below the active cursor.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                    dirNumberRequired. The direction of lines to select: -1 for up, 1 for down
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    skipBooleanRequired. If true, removes the active selection range
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • Editor.selectPageDown()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Selects the text from the current position of the document until where a "page down" finishes.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                         

                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Selects the text from the current position of the document until where a "page down" finishes.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • Editor.selectPageUp()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Selects the text from the current position of the document until where a "page up" finishes.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Selects the text from the current position of the document until where a "page up" finishes.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • Editor.setBehavioursEnabled(Boolean enabled)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Specifies whether to use behaviors or not. "Behaviors" in this case is the auto-pairing of special characters, like quotation marks, parenthesis, or brackets.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                             

                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Specifies whether to use behaviors or not. "Behaviors" in this case is the auto-pairing of special characters, like quotation marks, parenthesis, or brackets.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                          enabledBooleanRequired. Enables or disables behaviors
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Editor.setDragDelay(Number dragDelay)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Sets the delay (in milliseconds) of the mouse drag.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Sets the delay (in milliseconds) of the mouse drag.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                            dragDelayNumberRequired. A value indicating the new delay
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • Editor.setFontSize(Number size)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Set a new font size (in pixels) for the editor text.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 

                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Set a new font size (in pixels) for the editor text.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                              sizeNumberRequired. A font size
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • Editor.setHighlightActiveLine(Boolean shouldHighlight)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Determines whether or not the current line should be highlighted.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Determines whether or not the current line should be highlighted.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                shouldHighlightBooleanRequired. Set to true to highlight the current line
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • Editor.setHighlightSelectedWord(Boolean shouldHighlight)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Determines if the currently selected word should be highlighted.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Determines if the currently selected word should be highlighted.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  shouldHighlightBooleanRequired. Set to true to highlight the currently selected word
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • Editor.setKeyboardHandler(keyboardHandler)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Sets a new keyboard handler.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Sets a new keyboard handler.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    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.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    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.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    overwriteBooleanRequired. Defines wheter or not to set overwrites
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • Editor.setPrintMarginColumn(Number showPrintMargin)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Sets the column defining where the print margin should be.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Sets the column defining where the print margin should be.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      showPrintMarginNumberRequired. Specifies the new print margin
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • Editor.setReadOnly(Boolean readOnly)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        If readOnly is true, then the editor is set to read-only mode, and none of the content can change.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        If readOnly is true, then the editor is set to read-only mode, and none of the content can change.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        readOnlyBooleanRequired. Specifies whether the editor can be modified or not
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • Editor.setScrollSpeed(Number speed)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Sets how fast the mouse scrolling should do.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Sets how fast the mouse scrolling should do.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          speedNumberRequired. A value indicating the new speed
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Editor.setSelectionStyle(String style)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Indicates how selections should occur. By default, selections are set to "line". This function also emits the 'changeSelectionStyle' event.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Indicates how selections should occur. By default, selections are set to "line". This function also emits the 'changeSelectionStyle' event.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            styleStringRequired. The new selection style

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Sets a new editsession to use. This method also emits the 'changeSession' event.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Sets a new editsession to use. This method also emits the 'changeSession' event.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            sessionEditSessionRequired. The new session to use
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • Editor.setShowFoldWidgets(Boolean show)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Indicates whether the fold widgets are shown or not.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Indicates whether the fold widgets are shown or not.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              showBooleanRequired. Specifies whether the fold widgets are shown
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • Editor.setShowInvisibles(Boolean showInvisibles)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                If showInvisibiles is set to true, invisible characters—like spaces or new lines—are show in the editor.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                If showInvisibiles is set to true, invisible characters—like spaces or new lines—are show in the editor.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                showInvisiblesBooleanRequired. Specifies whether or not to show invisible characters
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • Editor.setShowPrintMargin(Boolean showPrintMargin)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  If showPrintMargin is set to true, the print margin is shown in the editor.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  If showPrintMargin is set to true, the print margin is shown in the editor.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  showPrintMarginBooleanRequired. Specifies whether or not to show the print margin

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Adds a new class, style, to the editor.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Adds a new class, style, to the editor.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • Editor.setTheme(theme)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Sets a new theme for the editor. theme should exist, and be a directory path, like ace/theme/textmate.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Sets a new theme for the editor. theme should exist, and be a directory path, like ace/theme/textmate.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Sets the current document to val.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Sets the current document to val.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    valStringRequired. The new value to set for the document
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    cursorPosNumberRequired. Where to set the new value. undefined or 0 is selectAll, -1 is at the document start, and 1 is at the end
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • Editor.splitLine()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Splits the line at the current selection (by inserting an '\n').

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Splits the line at the current selection (by inserting an '\n').

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • Editor.toggleCommentLines()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Given the currently selected range, this function either comments all lines or uncomments all lines (depending on whether it's commented or not).

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Given the currently selected range, this function either comments all lines or uncomments all lines (depending on whether it's commented or not).

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Sets the value of overwrite to the opposite of whatever it currently is.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Sets the value of overwrite to the opposite of whatever it currently is.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • Editor.toLowerCase()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Converts the current selection entirely into lowercase.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Converts the current selection entirely into lowercase.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Editor.toUpperCase()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Converts the current selection entirely into uppercase.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Converts the current selection entirely into uppercase.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • Editor.transposeLetters()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Transposes current line.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Transposes current line.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • Editor.transposeSelections(Number dir)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Transposes the selected ranges.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Transposes the selected ranges.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                dirNumberRequired. The direction to rotate selections

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Perform an undo operation on the document, reverting the last change. Returns the range of the undo.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Perform an undo operation on the document, reverting the last change. Returns the range of the undo.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Removes the class style from the editor.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Removes the class style from the editor.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • Editor.updateSelectionMarkers()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Updates the cursor and marker layers.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Updates the cursor and marker layers.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  diff --git a/api/placeholder.html b/api/placeholder.html index e28404c8..627e7abf 100644 --- a/api/placeholder.html +++ b/api/placeholder.html @@ -2,23 +2,23 @@ PlaceHolder - Ace API

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  TODO

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Constructors

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Events

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • PlaceHolder.on("onCursorChange", function(e))

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Emitted when the cursor changes.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Emitted when the cursor changes.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • PlaceHolder.on("onUpdate", function(e))

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Emitted when the place holder updates.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Emitted when the place holder updates.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Methods

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • PlaceHolder.cancel()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        TODO

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        TODO

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • PlaceHolder.detach()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          TODO

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          TODO

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • PlaceHolder.hideOtherMarkers()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Hides all over markers in the EditSession that are not the currently selected one.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Hides all over markers in the EditSession that are not the currently selected one.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • PlaceHolder.setup()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              TODO

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              TODO

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • PlaceHolder.showOtherMarkers()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                TODO

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                TODO

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Constructors

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                TODO

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                TODO

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                sessionDocumentRequired. The document to associate with the anchor
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                lengthNumberRequired. The starting row position
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                posNumberRequired. The starting column position
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                othersStringRequired.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                mainClassStringRequired.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                othersClassStringRequired.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Events

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • PlaceHolder.on("onCursorChange", function(e))

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Emitted when the cursor changes.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Emitted when the cursor changes.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • PlaceHolder.on("onUpdate", function(e))

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Emitted when the place holder updates.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Emitted when the place holder updates.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Methods

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • PlaceHolder.cancel()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      TODO

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      TODO

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • PlaceHolder.detach()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        TODO

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        TODO

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • PlaceHolder.hideOtherMarkers()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Hides all over markers in the EditSession that are not the currently selected one.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Hides all over markers in the EditSession that are not the currently selected one.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • PlaceHolder.setup()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            TODO

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            TODO

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • PlaceHolder.showOtherMarkers()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              TODO

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              TODO

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              diff --git a/api/range.html b/api/range.html index d9b83ba5..d37137e4 100644 --- a/api/range.html +++ b/api/range.html @@ -2,64 +2,61 @@ Range - Ace API

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              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.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Constructors

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Creates a new Range object with the given starting and ending row and column points.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Creates a new Range object with the given starting and ending row and column points.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              startRowNumberRequired. The starting row
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              startColumnNumberRequired. The starting column
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              endRowNumberRequired. The ending row
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              endColumnNumberRequired. The ending column

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Methods

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Returns the part of the current Range that occurs within the boundaries of firstRow and lastRow as a new Range object.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Returns the part of the current Range that occurs within the boundaries of firstRow and lastRow as a new Range object.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              firstRowNumberRequired. The starting row
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              lastRowNumberRequired. The ending row

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Returns a duplicate of the calling range.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Returns a duplicate of the calling range.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • Range.collapseRows()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Returns a range containing the starting and ending rows of the original range, but with a column value of 0.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                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.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Checks the row and column points with the row and column points of the calling range.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                rowNumberRequired. A row point to compare with
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                columnNumberRequired. A column point to compare with

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Checks the row and column points with the row and column points of the calling range.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Checks the row and column points with the row and column points of the calling range.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                rowNumberRequired. A row point to compare with
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                columnNumberRequired. A column point to compare with

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Checks the row and column points with the row and column points of the calling range.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Checks the row and column points with the row and column points of the calling range.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                rowNumberRequired. A row point to compare with
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                columnNumberRequired. A column point to compare with

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Checks the row and column points of p with the row and column points of the calling range.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Checks the row and column points of p with the row and column points of the calling range.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                pRangeRequired. A point to compare with

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Compares this range (A) with another range (B).

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Compares this range (A) with another range (B).

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                rangeRangeRequired. A range to compare with

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Checks the row and column points with the row and column points of the calling range.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Checks the row and column points with the row and column points of the calling range.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                rowNumberRequired. A row point to compare with
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                columnNumberRequired. A column point to compare with

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Returns true if the row and column provided are within the given range. This can better be expressed as returning true if:

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Returns true if the row and column provided are within the given range. This can better be expressed as returning true if:

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Constructors

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Creates a new Range object with the given starting and ending row and column points.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Creates a new Range object with the given starting and ending row and column points.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                startRowNumberRequired. The starting row
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                startColumnNumberRequired. The starting column
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                endRowNumberRequired. The ending row
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                endColumnNumberRequired. The ending column

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Methods

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Returns the part of the current Range that occurs within the boundaries of firstRow and lastRow as a new Range object.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Returns the part of the current Range that occurs within the boundaries of firstRow and lastRow as a new Range object.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                firstRowNumberRequired. The starting row
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                lastRowNumberRequired. The ending row

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Returns a duplicate of the calling range.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Returns a duplicate of the calling range.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • Range.collapseRows()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Returns a range containing the starting and ending rows of the original range, but with a column value of 0.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  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.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Checks the row and column points with the row and column points of the calling range.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  rowNumberRequired. A row point to compare with
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  columnNumberRequired. A column point to compare with

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Checks the row and column points with the row and column points of the calling range.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Checks the row and column points with the row and column points of the calling range.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  rowNumberRequired. A row point to compare with
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  columnNumberRequired. A column point to compare with

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Checks the row and column points with the row and column points of the calling range.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Checks the row and column points with the row and column points of the calling range.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  rowNumberRequired. A row point to compare with
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  columnNumberRequired. A column point to compare with

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Checks the row and column points of p with the row and column points of the calling range.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Checks the row and column points of p with the row and column points of the calling range.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  pRangeRequired. A point to compare with

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Compares this range (A) with another range (B).

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Compares this range (A) with another range (B).

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  rangeRangeRequired. A range to compare with

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Checks the row and column points with the row and column points of the calling range.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Checks the row and column points with the row and column points of the calling range.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  rowNumberRequired. A row point to compare with
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  columnNumberRequired. A column point to compare with

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Returns true if the row and column provided are within the given range. This can better be expressed as returning true if:

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  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

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  this.start.row <= row <= this.end.row && - this.start.column <= column <= this.end.column

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  rowNumberRequired. A row to check for
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  columnNumberRequired. A column to check for

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  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.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  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.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  rangeRangeRequired. A range to compare with

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Changes the row and column points for the calling range for both the starting and ending points. This method returns that range with a new row.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Changes the row and column points for the calling range for both the starting and ending points. This method returns that range with a new row.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  rowNumberRequired. A new row to extend to
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  columnNumberRequired. A new column to extend to

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Creates and returns a new Range based on the row and column of the given parameters.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Creates and returns a new Range based on the row and column of the given parameters.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  startRangeRequired. A starting point to use
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  endRangeRequired. An ending point to use

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Returns true if the row and column are within the given range.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Returns true if the row and column are within the given range.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  rowNumberRequired. A row point to compare with
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  columnNumberRequired. A column point to compare with

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Returns true if the row and column are within the given range's ending points.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Returns true if the row and column are within the given range's ending points.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  rowNumberRequired. A row point to compare with
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  columnNumberRequired. A column point to compare with

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Returns true if the row and column are within the given range's starting points.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Returns true if the row and column are within the given range's starting points.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  rowNumberRequired. A row point to compare with
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  columnNumberRequired. A column point to compare with

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Returns true if passed in range intersects with the one calling this method.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Returns true if passed in range intersects with the one calling this method.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  rangeRangeRequired. A range to compare with

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  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.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  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.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  rowNumberRequired. A row point to compare with
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  columnNumberRequired. A column point to compare with

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Returns true if and only if the starting row and column, and ending tow and column, are equivalent to those given by range.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Returns true if and only if the starting row and column, and ending tow and column, are equivalent to those given by range.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  rangeRangeRequired. A range to check against

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Returns true if the range spans across multiple lines.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Returns true if the range spans across multiple lines.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  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.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  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.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  rowNumberRequired. A row point to compare with
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  columnNumberRequired. A column point to compare with

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Sets the starting row and column for the range.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Sets the starting row and column for the range.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  rowNumberRequired. A row point to set
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  columnNumberRequired. A column point to set

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Sets the starting row and column for the range.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Sets the starting row and column for the range.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  rowNumberRequired. A row point to set
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  columnNumberRequired. A column point to set

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Given the current Range, this function converts those starting and ending points into screen positions, and then returns a new Range object.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Given the current Range, this function converts those starting and ending points into screen positions, and then returns a new Range object.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  sessionEditSessionRequired. The EditSession to retrieve coordinates from

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Returns a string containing the range's row and column information, given like this:

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Returns a string containing the range's row and column information, given like this:

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  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.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  rangeRangeRequired. A range to compare with

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Changes the row and column points for the calling range for both the starting and ending points. This method returns that range with a new row.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Changes the row and column points for the calling range for both the starting and ending points. This method returns that range with a new row.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  rowNumberRequired. A new row to extend to
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  columnNumberRequired. A new column to extend to

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Creates and returns a new Range based on the row and column of the given parameters.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Creates and returns a new Range based on the row and column of the given parameters.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  startRangeRequired. A starting point to use
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  endRangeRequired. An ending point to use

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Returns true if the row and column are within the given range.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Returns true if the row and column are within the given range.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  rowNumberRequired. A row point to compare with
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  columnNumberRequired. A column point to compare with

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Returns true if the row and column are within the given range's ending points.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Returns true if the row and column are within the given range's ending points.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  rowNumberRequired. A row point to compare with
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  columnNumberRequired. A column point to compare with

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Returns true if the row and column are within the given range's starting points.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Returns true if the row and column are within the given range's starting points.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  rowNumberRequired. A row point to compare with
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  columnNumberRequired. A column point to compare with

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Returns true if passed in range intersects with the one calling this method.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Returns true if passed in range intersects with the one calling this method.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  rangeRangeRequired. A range to compare with

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  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.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  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.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  rowNumberRequired. A row point to compare with
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  columnNumberRequired. A column point to compare with

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Returns true if and only if the starting row and column, and ending tow and column, are equivalent to those given by range.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Returns true if and only if the starting row and column, and ending tow and column, are equivalent to those given by range.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  rangeRangeRequired. A range to check against

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Returns true if the range spans across multiple lines.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Returns true if the range spans across multiple lines.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  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.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  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.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  rowNumberRequired. A row point to compare with
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  columnNumberRequired. A column point to compare with

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Sets the starting row and column for the range.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Sets the starting row and column for the range.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  rowNumberRequired. A row point to set
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  columnNumberRequired. A column point to set

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Sets the starting row and column for the range.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Sets the starting row and column for the range.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  rowNumberRequired. A row point to set
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  columnNumberRequired. A column point to set

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Given the current Range, this function converts those starting and ending points into screen positions, and then returns a new Range object.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Given the current Range, this function converts those starting and ending points into screen positions, and then returns a new Range object.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  sessionEditSessionRequired. The EditSession to retrieve coordinates from

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Returns a string containing the range's row and column information, given like this:

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Returns a string containing the range's row and column information, given like this:

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [start.row/start.column] -> [end.row/end.column]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [start.row/start.column] -> [end.row/end.column]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  diff --git a/api/renderloop.html b/api/renderloop.html index 3beaefdb..bdc7cae3 100644 --- a/api/renderloop.html +++ b/api/renderloop.html @@ -2,7 +2,7 @@ RenderLoop - Ace API

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Batches changes (that force something to be redrawn) in the background.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Constructors

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • RenderLoop.new(onRender, win)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • Internal

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Methods

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • RenderLoop.schedule(Array change)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • Internal

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  changeArrayRequired.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Constructors

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • new RenderLoop(onRender, win)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • Internal

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Methods

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • RenderLoop.schedule(Array change)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • Internal

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  changeArrayRequired.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  diff --git a/api/scrollbar.html b/api/scrollbar.html index c85e0569..1ea2683c 100644 --- a/api/scrollbar.html +++ b/api/scrollbar.html @@ -2,19 +2,19 @@ ScrollBar - Ace API

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  A set of methods for setting and retrieving the editor's scrollbar.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Constructors

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Creates a new ScrollBar. parent is the owner of the scroll bar.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Creates a new ScrollBar. parent is the owner of the scroll bar.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  parentDOMElementRequired. A DOM element

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Events

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • ScrollBar.on("onScroll", function())

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Emitted when the scroll bar, well, scrolls.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Emitted when the scroll bar, well, scrolls.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Methods

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Returns the width of the scroll bar.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Returns the width of the scroll bar.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • ScrollBar.setHeight(Number height)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Sets the height of the scroll bar, in pixels.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Sets the height of the scroll bar, in pixels.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      heightNumberRequired. The new height
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • ScrollBar.setInnerHeight(Number height)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Sets the inner height of the scroll bar, in pixels.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Sets the inner height of the scroll bar, in pixels.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        heightNumberRequired. The new inner height
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • ScrollBar.setScrollTop(Number scrollTop)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Sets the scroll top of the scroll bar.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Sets the scroll top of the scroll bar.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          scrollTopNumberRequired. The new scroll top
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Constructors

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Creates a new ScrollBar. parent is the owner of the scroll bar.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Creates a new ScrollBar. parent is the owner of the scroll bar.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          parentDOMElementRequired. A DOM element

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Events

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • ScrollBar.on("onScroll", function())

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Emitted when the scroll bar, well, scrolls.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Emitted when the scroll bar, well, scrolls.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Methods

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Returns the width of the scroll bar.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Returns the width of the scroll bar.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • ScrollBar.setHeight(Number height)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Sets the height of the scroll bar, in pixels.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Sets the height of the scroll bar, in pixels.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              heightNumberRequired. The new height
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • ScrollBar.setInnerHeight(Number height)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Sets the inner height of the scroll bar, in pixels.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Sets the inner height of the scroll bar, in pixels.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                heightNumberRequired. The new inner height
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • ScrollBar.setScrollTop(Number scrollTop)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Sets the scroll top of the scroll bar.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Sets the scroll top of the scroll bar.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  scrollTopNumberRequired. The new scroll top
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  diff --git a/api/search.html b/api/search.html index 7c5662a8..58022ef1 100644 --- a/api/search.html +++ b/api/search.html @@ -2,41 +2,30 @@ Search - Ace API

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  A class designed to handle all sorts of text searches within a Document.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Constructors

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • Search.new()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Creates a new Search object. The following search options are avaliable:

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Creates a new Search object. The following search options are avaliable:

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Constructors

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • new Search()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Creates a new Search object. The following search options are avaliable:

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Creates a new Search object. The following search options are avaliable:

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • needle: string or regular expression
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • backwards: false
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • wrap: false
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • caseSensitive: false
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • wholeWord: false
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • range: Range or null for whole document
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • regExp: false
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • start: Range or position
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • skipCurrent: false
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • needle: The string or regular expression you're looking for
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • backwards: Whether to search backwards from where cursor currently is. Defaults to false.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • wrap: Whether to wrap the search back to the beginning when it hits the end. Defaults to false.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • caseSensitive: Whether the search ought to be case-sensitive. Defaults to false.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • wholeWord: Whether the search matches only on whole words. Defaults to false.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • range: The Range to search within. Set this to null for the whole document
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • regExp: Whether the search is a regular expression or not. Defaults to false.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • start: The starting Range or cursor position to begin the search
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • skipCurrent: Whether or not to include the current line in the search. Default to false.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • needle: string or regular expression
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • backwards: false
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • wrap: false
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • caseSensitive: false
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • wholeWord: false
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • range: Range or null for whole document
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • regExp: false
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • start: Range or position
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • skipCurrent: false
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Methods

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Searches for options.needle. If found, this method returns the Range where the text first occurs. If options.backwards is true, the search goes backwards in the session.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Searches for options.needle. If found, this method returns the Range where the text first occurs. If options.backwards is true, the search goes backwards in the session.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      sessionEditSessionRequired. The session to search with

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Searches for all occurances options.needle. If found, this method returns an array of Range where the text first occurs. If options.backwards is true, the search goes backwards in the session.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Searches for all occurances options.needle. If found, this method returns an array of Range where the text first occurs. If options.backwards is true, the search goes backwards in the session.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      sessionEditSessionRequired. The session to search with

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Returns an object containing all the search options.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Returns an object containing all the search options.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Searches for options.needle in input, and, if found, replaces it with replacement.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Searches for options.needle in input, and, if found, replaces it with replacement.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      inputStringRequired. The text to search in
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      replacementStringRequired. The replacing text

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Sets the search options via the options parameter.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Sets the search options via the options parameter.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      optionsObjectRequired. An object containing all the new search properties
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Methods

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      sessionEditSessionRequired. The session to search with

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Searches for options.needle. If found, this method returns the Range where the text first occurs. If options.backwards is true, the search goes backwards in the session.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Searches for options.needle. If found, this method returns the Range where the text first occurs. If options.backwards is true, the search goes backwards in the session.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      sessionEditSessionRequired. The session to search with

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Searches for all occurances options.needle. If found, this method returns an array of Range where the text first occurs. If options.backwards is true, the search goes backwards in the session.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Searches for all occurances options.needle. If found, this method returns an array of Range where the text first occurs. If options.backwards is true, the search goes backwards in the session.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      sessionEditSessionRequired. The session to search with

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Returns an object containing all the search options.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Returns an object containing all the search options.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Searches for options.needle in input, and, if found, replaces it with replacement.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Searches for options.needle in input, and, if found, replaces it with replacement.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      inputStringRequired. The text to search in
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      replacementStringRequired. The replacing text

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Sets the search options via the options parameter.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Sets the search options via the options parameter.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      optionsObjectRequired. An object containing all the new search properties
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      diff --git a/api/selection.html b/api/selection.html index f2598bc6..788bfd65 100644 --- a/api/selection.html +++ b/api/selection.html @@ -3,99 +3,99 @@ Selection - Ace API

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      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.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Constructors

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Creates a new Selection object.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Creates a new Selection object.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      sessionEditSessionRequired. The session to use

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Methods

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Adds a range to a selection by entering multiselect mode, if necessary.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Adds a range to a selection by entering multiselect mode, if necessary.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      rangeRangeRequired. The new range to add
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      $blockChangeEventsBooleanRequired. Whether or not to block changing events
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • Selection.clearSelection()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Empties the selection (by de-selecting it). This function also emits the 'changeSelection' event.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Empties the selection (by de-selecting it). This function also emits the 'changeSelection' event.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Gets the current position of the cursor.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Gets the current position of the cursor.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • Selection.getRange()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Returns the Range for the selected text.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Returns the Range for the selected text.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Returns an object containing the row and column of the calling selection anchor.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Returns an object containing the row and column of the calling selection anchor.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Selection.getSelectionLead()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Returns an object containing the row and column of the calling selection lead.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Returns an object containing the row and column of the calling selection lead.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Returns true if the selection is going backwards in the document.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Returns true if the selection is going backwards in the document.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Returns true if the selection is empty.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Returns true if the selection is empty.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Returns true if the selection is a multi-line.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Returns true if the selection is a multi-line.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • Selection.mergeOverlappingRanges()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Merges overlapping ranges ensuring consistency after changes

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Merges overlapping ranges ensuring consistency after changes

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Moves the cursor to position indicated by the parameters. Negative numbers move the cursor backwards in the document.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Moves the cursor to position indicated by the parameters. Negative numbers move the cursor backwards in the document.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              rowsNumberRequired. The number of rows to move by
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              charsNumberRequired. The number of characters to move by
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • Selection.moveCursorDown()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Moves the cursor down one row.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Moves the cursor down one row.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • Selection.moveCursorFileEnd()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Moves the cursor to the end of the file.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Moves the cursor to the end of the file.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • Selection.moveCursorFileStart()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Moves the cursor to the start of the file.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Moves the cursor to the start of the file.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • Selection.moveCursorLeft()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Moves the cursor left one column.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Moves the cursor left one column.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • Selection.moveCursorLineEnd()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Moves the cursor to the end of the line.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Moves the cursor to the end of the line.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • Selection.moveCursorLineStart()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Moves the cursor to the start of the line.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Moves the cursor to the start of the line.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Selection.moveCursorLongWordLeft()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Moves the cursor to the word on the left.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Moves the cursor to the word on the left.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • Selection.moveCursorLongWordRight()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Moves the cursor to the word on the right.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Moves the cursor to the word on the right.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • Selection.moveCursorRight()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Moves the cursor right one column.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Moves the cursor right one column.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                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.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                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.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                rowNumberRequired. The row to move to
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                columnNumberRequired. The column to move to
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                keepDesiredColumnBooleanRequired. If true, the cursor move does not respect the previous column
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • Selection.moveCursorToPosition(Object position)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Moves the selection to the position indicated by its row and column.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Moves the selection to the position indicated by its row and column.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  positionObjectRequired. The position to move to

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Moves the cursor to the screen position indicated by row and column. If preventUpdateDesiredColumn is true, then the cursor stays in the same column position as its original point.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Moves the cursor to the screen position indicated by row and column. If preventUpdateDesiredColumn is true, then the cursor stays in the same column position as its original point.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  rowNumberRequired. The row to move to
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  columnNumberRequired. The column to move to
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  keepDesiredColumnBooleanRequired. If true, the cursor move does not respect the previous column
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • Selection.moveCursorUp()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Moves the cursor up one row.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Moves the cursor up one row.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Gets list of ranges composing rectangular block on the screen

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Gets list of ranges composing rectangular block on the screen

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    screenCursorCursorRequired. The cursor to use
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    screenAnchorAnchorRequired. The anchor to use
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    includeEmptyLinesBooleanRequired. If true, this includes ranges inside the block which are empty due to clipping
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • Selection.selectAll()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Selects all the text in the document.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Selects all the text in the document.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Selects a word, including its right whitespace.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Selects a word, including its right whitespace.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • Selection.selectDown()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Moves the selection down one row.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Moves the selection down one row.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • Selection.selectFileEnd()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Moves the selection to the end of the file.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Moves the selection to the end of the file.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Selection.selectFileStart()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Moves the selection to the start of the file.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Moves the selection to the start of the file.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • Selection.selectLeft()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Moves the selection left one column.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Moves the selection left one column.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • Selection.selectLine()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Selects the entire line.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Selects the entire line.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • Selection.selectLineEnd()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Moves the selection to the end of the current line.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Moves the selection to the end of the current line.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • Selection.selectLineStart()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Moves the selection to the beginning of the current line.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Moves the selection to the beginning of the current line.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • Selection.selectRight()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Moves the selection right one column.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Moves the selection right one column.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Moves the selection cursor to the indicated row and column.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Moves the selection cursor to the indicated row and column.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      rowNumberRequired. The row to select to
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      columnNumberRequired. The column to select to
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • Selection.selectToPosition(Object pos)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Moves the selection cursor to the row and column indicated by pos.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Moves the selection cursor to the row and column indicated by pos.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        posObjectRequired. An object containing the row and column
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • Selection.selectUp()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Moves the selection up one row.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Moves the selection up one row.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Moves the selection to highlight the entire word.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Moves the selection to highlight the entire word.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Selection.selectWordLeft()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Moves the selection to the first word on the left.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Moves the selection to the first word on the left.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • Selection.selectWordRight()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Moves the selection to the first word on the right.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Moves the selection to the first word on the right.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Sets the row and column position of the anchor. This function also emits the 'changeSelection' event.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Sets the row and column position of the anchor. This function also emits the 'changeSelection' event.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              rowNumberRequired. The new row
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              columnNumberRequired. The new column

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Sets the selection to the provided range.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Sets the selection to the provided range.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              rangeRangeRequired. The range of text to select
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              reverseBooleanRequired. Indicates if the range should go backwards (true) or not
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • Selection.shiftSelection(Number columns)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Shifts the selection up (or down, if isBackwards is true) the given number of columns.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Shifts the selection up (or down, if isBackwards is true) the given number of columns.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                columnsNumberRequired. The number of columns to shift by

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Removes a Range containing pos (if it exists).

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Removes a Range containing pos (if it exists).

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                posRangeRequired. The position to remove, as a {row, column} object
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Constructors

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Creates a new Selection object.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Creates a new Selection object.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                sessionEditSessionRequired. The session to use

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Methods

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Adds a range to a selection by entering multiselect mode, if necessary.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Adds a range to a selection by entering multiselect mode, if necessary.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                rangeRangeRequired. The new range to add
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                $blockChangeEventsBooleanRequired. Whether or not to block changing events
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • Selection.clearSelection()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Empties the selection (by de-selecting it). This function also emits the 'changeSelection' event.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Empties the selection (by de-selecting it). This function also emits the 'changeSelection' event.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Gets the current position of the cursor.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Gets the current position of the cursor.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • Selection.getRange()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Returns the Range for the selected text.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Returns the Range for the selected text.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Returns an object containing the row and column of the calling selection anchor.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Returns an object containing the row and column of the calling selection anchor.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • Selection.getSelectionLead()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Returns an object containing the row and column of the calling selection lead.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Returns an object containing the row and column of the calling selection lead.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Returns true if the selection is going backwards in the document.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Returns true if the selection is going backwards in the document.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Returns true if the selection is empty.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Returns true if the selection is empty.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Returns true if the selection is a multi-line.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Returns true if the selection is a multi-line.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • Selection.mergeOverlappingRanges()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Merges overlapping ranges ensuring consistency after changes

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Merges overlapping ranges ensuring consistency after changes

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Moves the cursor to position indicated by the parameters. Negative numbers move the cursor backwards in the document.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Moves the cursor to position indicated by the parameters. Negative numbers move the cursor backwards in the document.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        rowsNumberRequired. The number of rows to move by
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        charsNumberRequired. The number of characters to move by
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • Selection.moveCursorDown()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Moves the cursor down one row.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Moves the cursor down one row.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Selection.moveCursorFileEnd()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Moves the cursor to the end of the file.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Moves the cursor to the end of the file.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • Selection.moveCursorFileStart()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Moves the cursor to the start of the file.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Moves the cursor to the start of the file.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • Selection.moveCursorLeft()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Moves the cursor left one column.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Moves the cursor left one column.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • Selection.moveCursorLineEnd()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Moves the cursor to the end of the line.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Moves the cursor to the end of the line.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • Selection.moveCursorLineStart()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Moves the cursor to the start of the line.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Moves the cursor to the start of the line.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • Selection.moveCursorLongWordLeft()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Moves the cursor to the word on the left.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Moves the cursor to the word on the left.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • Selection.moveCursorLongWordRight()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Moves the cursor to the word on the right.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Moves the cursor to the word on the right.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • Selection.moveCursorRight()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Moves the cursor right one column.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Moves the cursor right one column.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          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.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          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.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          rowNumberRequired. The row to move to
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          columnNumberRequired. The column to move to
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          keepDesiredColumnBooleanRequired. If true, the cursor move does not respect the previous column
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Selection.moveCursorToPosition(Object position)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Moves the selection to the position indicated by its row and column.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Moves the selection to the position indicated by its row and column.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            positionObjectRequired. The position to move to

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Moves the cursor to the screen position indicated by row and column. If preventUpdateDesiredColumn is true, then the cursor stays in the same column position as its original point.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Moves the cursor to the screen position indicated by row and column. If preventUpdateDesiredColumn is true, then the cursor stays in the same column position as its original point.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            rowNumberRequired. The row to move to
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            columnNumberRequired. The column to move to
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            keepDesiredColumnBooleanRequired. If true, the cursor move does not respect the previous column
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • Selection.moveCursorUp()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Moves the cursor up one row.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Moves the cursor up one row.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Gets list of ranges composing rectangular block on the screen

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Gets list of ranges composing rectangular block on the screen

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              screenCursorCursorRequired. The cursor to use
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              screenAnchorAnchorRequired. The anchor to use
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              includeEmptyLinesBooleanRequired. If true, this includes ranges inside the block which are empty due to clipping
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • Selection.selectAll()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Selects all the text in the document.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Selects all the text in the document.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Selects a word, including its right whitespace.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Selects a word, including its right whitespace.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • Selection.selectDown()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Moves the selection down one row.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Moves the selection down one row.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • Selection.selectFileEnd()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Moves the selection to the end of the file.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Moves the selection to the end of the file.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • Selection.selectFileStart()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Moves the selection to the start of the file.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Moves the selection to the start of the file.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • Selection.selectLeft()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Moves the selection left one column.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Moves the selection left one column.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • Selection.selectLine()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Selects the entire line.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Selects the entire line.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Selection.selectLineEnd()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Moves the selection to the end of the current line.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Moves the selection to the end of the current line.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • Selection.selectLineStart()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Moves the selection to the beginning of the current line.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Moves the selection to the beginning of the current line.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • Selection.selectRight()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Moves the selection right one column.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Moves the selection right one column.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Moves the selection cursor to the indicated row and column.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Moves the selection cursor to the indicated row and column.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                rowNumberRequired. The row to select to
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                columnNumberRequired. The column to select to
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • Selection.selectToPosition(Object pos)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Moves the selection cursor to the row and column indicated by pos.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Moves the selection cursor to the row and column indicated by pos.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  posObjectRequired. An object containing the row and column
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • Selection.selectUp()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Moves the selection up one row.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Moves the selection up one row.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Moves the selection to highlight the entire word.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Moves the selection to highlight the entire word.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • Selection.selectWordLeft()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Moves the selection to the first word on the left.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Moves the selection to the first word on the left.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • Selection.selectWordRight()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Moves the selection to the first word on the right.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Moves the selection to the first word on the right.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Sets the row and column position of the anchor. This function also emits the 'changeSelection' event.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Sets the row and column position of the anchor. This function also emits the 'changeSelection' event.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        rowNumberRequired. The new row
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        columnNumberRequired. The new column

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Sets the selection to the provided range.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Sets the selection to the provided range.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        rangeRangeRequired. The range of text to select
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        reverseBooleanRequired. Indicates if the range should go backwards (true) or not
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • Selection.shiftSelection(Number columns)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Shifts the selection up (or down, if isBackwards is true) the given number of columns.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Shifts the selection up (or down, if isBackwards is true) the given number of columns.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          columnsNumberRequired. The number of columns to shift by

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Removes a Range containing pos (if it exists).

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Removes a Range containing pos (if it exists).

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          posRangeRequired. The position to remove, as a {row, column} object
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          diff --git a/api/split.html b/api/split.html index ffcab296..cdad4071 100644 --- a/api/split.html +++ b/api/split.html @@ -1,29 +1,29 @@ - Split - Ace API

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Constructors

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          containerDocumentRequired. The document to associate with the split
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          themeStringRequired. The name of the initial theme
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          splitsNumberRequired. The number of initial splits

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Methods

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Blurs the current editor.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Blurs the current editor.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Focuses the current editor.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Focuses the current editor.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Executes callback on all of the available editors.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Executes callback on all of the available editors.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          callbackFunctionRequired. A callback function to execute
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          scopeStringRequired.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Split.getCurrentEditor()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Returns the current editor.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Returns the current editor.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Returns the editor identified by the index idx.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Returns the editor identified by the index idx.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            idxNumberRequired. The index of the editor you want
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • Internal

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Returns the orientation.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Returns the orientation.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Returns the number of splits.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Returns the number of splits.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • Split.resize()
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • Void
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • Internal

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Sets the font size, in pixels, for all the available editors.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Sets the font size, in pixels, for all the available editors.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            sizeNumberRequired. The new font size
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • Split.setKeyboardHandler(String keybinding)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • Void
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • Internal

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            keybindingStringRequired.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • Split.setOrientation(Number oriantation)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • Void
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • Internal

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Sets the orientation.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Sets the orientation.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            oriantationNumberRequired.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • Split.setSplits(Number splits)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • Void
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • Internal

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            splitsNumberRequired. The new number of splits

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Sets a theme for each of the available editors.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Sets a theme for each of the available editors.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            themeStringRequired. The name of the theme to set
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • Split.UndoManagerProxy()
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • Void
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • Internal

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + Split - Ace API

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Constructors

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            containerDocumentRequired. The document to associate with the split
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            themeStringRequired. The name of the initial theme
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            splitsNumberRequired. The number of initial splits

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Methods

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Blurs the current editor.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Blurs the current editor.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Focuses the current editor.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Focuses the current editor.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Executes callback on all of the available editors.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Executes callback on all of the available editors.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            callbackFunctionRequired. A callback function to execute
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            scopeStringRequired.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • Split.getCurrentEditor()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Returns the current editor.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Returns the current editor.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Returns the editor identified by the index idx.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Returns the editor identified by the index idx.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              idxNumberRequired. The index of the editor you want
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • Internal

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Returns the orientation.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Returns the orientation.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Returns the number of splits.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Returns the number of splits.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • Split.resize()
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • Void
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • Internal

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Sets the font size, in pixels, for all the available editors.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Sets the font size, in pixels, for all the available editors.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              sizeNumberRequired. The new font size
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • Split.setKeyboardHandler(String keybinding)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • Void
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • Internal

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              keybindingStringRequired.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • Split.setOrientation(Number oriantation)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • Void
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • Internal

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Sets the orientation.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Sets the orientation.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              oriantationNumberRequired.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • Split.setSplits(Number splits)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • Void
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • Internal

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              splitsNumberRequired. The new number of splits

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Sets a theme for each of the available editors.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Sets a theme for each of the available editors.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              themeStringRequired. The name of the theme to set
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • Split.UndoManagerProxy()
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • Void
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • Internal

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              diff --git a/api/token_iterator.html b/api/token_iterator.html index 417f8045..ef9d2a2a 100644 --- a/api/token_iterator.html +++ b/api/token_iterator.html @@ -2,19 +2,19 @@ TokenIterator - Ace API

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              This class provides an essay way to treat the document as a stream of tokens, and provides methods to iterate over these tokens.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Constructors

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Creates a new token iterator object. The inital token index is set to the provided row and column coordinates.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Creates a new token iterator object. The inital token index is set to the provided row and column coordinates.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              sessionEditSessionRequired. The session to associate with
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              initialRowNumberRequired. The row to start the tokenizing at
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              initialColumnNumberRequired. The column to start the tokenizing at

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Methods

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • TokenIterator.getCurrentToken()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Returns the current tokenized string.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Returns the current tokenized string.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • TokenIterator.getCurrentTokenColumn()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Returns the current column.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Returns the current column.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • TokenIterator.getCurrentTokenRow()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Returns the current row.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Returns the current row.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • TokenIterator.stepBackward()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Tokenizes all the items from the current point to the row prior in the document.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Tokenizes all the items from the current point to the row prior in the document.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • TokenIterator.stepForward()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        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.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        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.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Constructors

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Creates a new token iterator object. The inital token index is set to the provided row and column coordinates.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Creates a new token iterator object. The inital token index is set to the provided row and column coordinates.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        sessionEditSessionRequired. The session to associate with
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        initialRowNumberRequired. The row to start the tokenizing at
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        initialColumnNumberRequired. The column to start the tokenizing at

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Methods

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • TokenIterator.getCurrentToken()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Returns the current tokenized string.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Returns the current tokenized string.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • TokenIterator.getCurrentTokenColumn()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Returns the current column.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Returns the current column.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • TokenIterator.getCurrentTokenRow()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Returns the current row.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Returns the current row.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • TokenIterator.stepBackward()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Tokenizes all the items from the current point to the row prior in the document.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Tokenizes all the items from the current point to the row prior in the document.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • TokenIterator.stepForward()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  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.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  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.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  diff --git a/api/tokenizer.html b/api/tokenizer.html index a5dfb34b..de974f6b 100644 --- a/api/tokenizer.html +++ b/api/tokenizer.html @@ -2,11 +2,11 @@ Tokenizer - Ace API

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Constructors

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Constructs a new tokenizer based on the given rules and flags.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Constructs a new tokenizer based on the given rules and flags.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  rulesObjectRequired. The highlighting rules
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  flagStringRequired. Any additional regular expression flags to pass (like "i" for case insensitive)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Methods

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • Tokenizer.getLineTokens()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Returns an object containing two properties: tokens, which contains all the tokens; and state, the current state.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Returns an object containing two properties: tokens, which contains all the tokens; and state, the current state.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Constructors

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Constructs a new tokenizer based on the given rules and flags.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Constructs a new tokenizer based on the given rules and flags.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    rulesObjectRequired. The highlighting rules
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    flagStringRequired. Any additional regular expression flags to pass (like "i" for case insensitive)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Methods

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • Tokenizer.getLineTokens()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Returns an object containing two properties: tokens, which contains all the tokens; and state, the current state.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Returns an object containing two properties: tokens, which contains all the tokens; and state, the current state.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      diff --git a/api/undomanager.html b/api/undomanager.html index dc2c2d10..a7d02245 100644 --- a/api/undomanager.html +++ b/api/undomanager.html @@ -2,29 +2,25 @@ UndoManager - Ace API

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      This object maintains the undo stack for an EditSession.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Constructors

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • UndoManager.new()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Resets the current undo state and creates a new UndoManager.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Resets the current undo state and creates a new UndoManager.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Methods

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • UndoManager.execute(Object options)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Void

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Provides a means for implementing your own undo manager. options has one property, args, an Array, with two elements:

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Constructors

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • new UndoManager()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Resets the current undo state and creates a new UndoManager.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Resets the current undo state and creates a new UndoManager.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Methods

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • UndoManager.execute(Object options)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • Void

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Provides a means for implementing your own undo manager. options has one property, args, an Array, with two elements:

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Provides a means for implementing your own undo manager. options has one property, args, an Array, with two elements:

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • args[0] is an array of deltas
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • args[1] is the document to associate with
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Provides a means for implementing your own undo manager. options has one property, args, an Array, with two elements:

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • args[0] is an array of deltas
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • args[1] is the document to associate with
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              optionsObjectRequired. Contains additional properties

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Returns true if there are redo operations left to perform.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Returns true if there are redo operations left to perform.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Returns true if there are undo operations left to perform.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Returns true if there are undo operations left to perform.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • UndoManager.redo(Boolean dontSelect)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • Void

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Perform a redo operation on the document, reimplementing the last change.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Perform a redo operation on the document, reimplementing the last change.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                dontSelectBooleanRequired. If true, doesn't select the range of where the change occured
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • UndoManager.reset()
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • Void

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Destroys the stack of undo and redo redo operations.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Destroys the stack of undo and redo redo operations.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Perform an undo operation on the document, reverting the last change. Returns the range of the undo.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Perform an undo operation on the document, reverting the last change. Returns the range of the undo.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  dontSelectBooleanRequired. If true, doesn't select the range of where the change occured
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  optionsObjectRequired. Contains additional properties

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Returns true if there are redo operations left to perform.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Returns true if there are redo operations left to perform.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Returns true if there are undo operations left to perform.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Returns true if there are undo operations left to perform.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • UndoManager.redo(Boolean dontSelect)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • Void

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Perform a redo operation on the document, reimplementing the last change.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Perform a redo operation on the document, reimplementing the last change.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    dontSelectBooleanRequired. If true, doesn't select the range of where the change occured
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • UndoManager.reset()
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • Void

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Destroys the stack of undo and redo redo operations.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Destroys the stack of undo and redo redo operations.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Perform an undo operation on the document, reverting the last change. Returns the range of the undo.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Perform an undo operation on the document, reverting the last change. Returns the range of the undo.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      dontSelectBooleanRequired. If true, doesn't select the range of where the change occured
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      diff --git a/api/virtual_renderer.html b/api/virtual_renderer.html index 4160ae6d..f8d4220e 100644 --- a/api/virtual_renderer.html +++ b/api/virtual_renderer.html @@ -2,123 +2,123 @@ VirtualRenderer - Ace API

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      The class that is responsible for drawing everything you see on the screen!

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Constructors

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Constructs a new VirtualRenderer within the container specified, applying the given theme.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Constructs a new VirtualRenderer within the container specified, applying the given theme.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      containerDOMElementRequired. The root element of the editor
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      themeStringRequired. The starting theme

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Methods

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • VirtualRenderer.addGutterDecoration(row, className)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • Void

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Deprecated (moved to EditSession)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Deprecated (moved to EditSession)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • VirtualRenderer.adjustWrapLimit()
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Void

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Adjusts the wrap limit, which is the number of characters that can fit within the width of the edit area on screen.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Adjusts the wrap limit, which is the number of characters that can fit within the width of the edit area on screen.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • VirtualRenderer.destroy()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Destroys the text and cursor layers for this renderer.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Destroys the text and cursor layers for this renderer.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • VirtualRenderer.getAnimatedScroll()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Returns whether an animated scroll happens or not.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Returns whether an animated scroll happens or not.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Returns the root element containing this renderer.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Returns the root element containing this renderer.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • VirtualRenderer.getFirstFullyVisibleRow()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                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.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                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.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • VirtualRenderer.getFirstVisibleRow()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Returns the index of the first visible row.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Returns the index of the first visible row.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • VirtualRenderer.getHScrollBarAlwaysVisible()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Returns whether the horizontal scrollbar is set to be always visible.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Returns whether the horizontal scrollbar is set to be always visible.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • VirtualRenderer.getLastFullyVisibleRow()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      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.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      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.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • VirtualRenderer.getLastVisibleRow()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Returns the index of the last visible row.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Returns the index of the last visible row.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Returns the element that the mouse events are attached to

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Returns the element that the mouse events are attached to

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • VirtualRenderer.getPrintMarginColumn()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Returns whether the print margin column is being shown or not.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Returns whether the print margin column is being shown or not.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • VirtualRenderer.getScrollBottomRow()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Returns the last visible row, regardless of whether it's fully visible or not.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Returns the last visible row, regardless of whether it's fully visible or not.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Returns the value of the distance between the left of the editor and the leftmost part of the visible content.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Returns the value of the distance between the left of the editor and the leftmost part of the visible content.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Returns the value of the distance between the top of the editor and the topmost part of the visible content.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Returns the value of the distance between the top of the editor and the topmost part of the visible content.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • VirtualRenderer.getScrollTopRow()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Returns the first visible row, regardless of whether it's fully visible or not.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Returns the first visible row, regardless of whether it's fully visible or not.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • VirtualRenderer.getShowGutter()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Returns true if the gutter is being shown.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Returns true if the gutter is being shown.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • VirtualRenderer.getShowInvisibles()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Returns whether invisible characters are being shown or not.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Returns whether invisible characters are being shown or not.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • VirtualRenderer.getShowPrintMargin()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Returns whetherthe print margin is being shown or not.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Returns whetherthe print margin is being shown or not.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Returns the element to which the hidden text area is added.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Returns the element to which the hidden text area is added.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • VirtualRenderer.getTheme()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Returns the path of the current theme.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Returns the path of the current theme.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • VirtualRenderer.hideComposition()
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • Void

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Hides the current composition.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Hides the current composition.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • VirtualRenderer.hideCursor()
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Void

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Hides the cursor icon.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Hides the cursor icon.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Returns true if you can still scroll by either parameter; in other words, you haven't reached the end of the file or line.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Returns true if you can still scroll by either parameter; in other words, you haven't reached the end of the file or line.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          deltaXNumberRequired. The x value to scroll by
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          deltaYNumberRequired. The y value to scroll by
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • VirtualRenderer.onResize(Boolean force)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • Void

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Triggers a resize of the editor.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Triggers a resize of the editor.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            forceBooleanRequired. If true, recomputes the size, even if the height and width haven't changed
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • VirtualRenderer.removeGutterDecoration(row, className)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • Void

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Deprecated (moved to EditSession)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Deprecated (moved to EditSession)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Scrolls the editor across both x- and y-axes.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Scrolls the editor across both x- and y-axes.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              deltaXNumberRequired. The x value to scroll by
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              deltaYNumberRequired. The y value to scroll by
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • VirtualRenderer.scrollCursorIntoView(cursor, offset)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • Void

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Scrolls the cursor into the first visibile area of the editor

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Scrolls the cursor into the first visibile area of the editor

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Gracefully scrolls the editor to the row indicated.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Gracefully scrolls the editor to the row indicated.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                lineNumberRequired. A line number
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                centerBooleanRequired. If true, centers the editor the to indicated line
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                animateBooleanRequired. If true animates scrolling
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                callbackFunctionRequired. Function to be called after the animation has finished

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Gracefully scrolls the top of the editor to the row indicated.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Gracefully scrolls the top of the editor to the row indicated.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                rowNumberRequired. A row id

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Scrolls the editor to the x pixel indicated.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Scrolls the editor to the x pixel indicated.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                scrollLeftNumberRequired. The position to scroll to

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Scrolls the editor to the y pixel indicated.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Scrolls the editor to the y pixel indicated.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                scrollTopNumberRequired. The position to scroll to
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • VirtualRenderer.setAnimatedScroll(Boolean shouldAnimate)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • Void

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Identifies whether you want to have an animated scroll or not.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Identifies whether you want to have an animated scroll or not.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  shouldAnimateBooleanRequired. Set to true to show animated scrolls
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • VirtualRenderer.setAnnotations(Array annotations)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • Void

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Sets annotations for the gutter.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Sets annotations for the gutter.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    annotationsArrayRequired. An array containing annotations
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • VirtualRenderer.setCompositionText(String text)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • Void

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Sets the inner text of the current composition to text.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Sets the inner text of the current composition to text.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      textStringRequired. A string of text to use
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • VirtualRenderer.setHScrollBarAlwaysVisible(Boolean alwaysVisible)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • Void

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Identifies whether you want to show the horizontal scrollbar or not.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Identifies whether you want to show the horizontal scrollbar or not.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        alwaysVisibleBooleanRequired. Set to true to make the horizontal scroll bar visible
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • VirtualRenderer.setPadding(Number padding)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Void

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Sets the padding for all the layers.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Sets the padding for all the layers.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          paddingNumberRequired. A new padding value (in pixels)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • VirtualRenderer.setPrintMarginColumn(Boolean showPrintMargin)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Identifies whether you want to show the print margin column or not.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Identifies whether you want to show the print margin column or not.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            showPrintMarginBooleanRequired. Set to true to show the print margin column
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • VirtualRenderer.setShowGutter(Boolean show)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • Void

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Identifies whether you want to show the gutter or not.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Identifies whether you want to show the gutter or not.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              showBooleanRequired. Set to true to show the gutter
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • VirtualRenderer.setShowInvisibles(Boolean showInvisibles)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • Void

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Identifies whether you want to show invisible characters or not.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Identifies whether you want to show invisible characters or not.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                showInvisiblesBooleanRequired. Set to true to show invisibles
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • VirtualRenderer.setShowPrintMargin(Boolean showPrintMargin)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Identifies whether you want to show the print margin or not.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Identifies whether you want to show the print margin or not.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  showPrintMarginBooleanRequired. Set to true to show the print margin
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • VirtualRenderer.setStyle(String style)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • Void

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Adds a new class, style, to the editor.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Adds a new class, style, to the editor.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    styleStringRequired. A class name
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • VirtualRenderer.setTheme(String theme)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • Void

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Sets a new theme for the editor. theme should exist, and be a directory path, like ace/theme/textmate.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Sets a new theme for the editor. theme should exist, and be a directory path, like ace/theme/textmate.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      themeStringRequired. The path to a theme
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • VirtualRenderer.showComposition(Number position)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • Void
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • Internal

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      positionNumberRequired.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • VirtualRenderer.showCursor()
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • Void

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Shows the cursor icon.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Shows the cursor icon.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Returns an object containing the pageX and pageY coordinates of the document position.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Returns an object containing the pageX and pageY coordinates of the document position.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        rowNumberRequired. The document row position
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        columnNumberRequired. The document column position
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • VirtualRenderer.unsetStyle(String style)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Void

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Removes the class style from the editor.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Removes the class style from the editor.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          styleStringRequired. A class name
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • VirtualRenderer.updateBackMarkers()
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • Void

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Schedules an update to all the back markers in the document.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Schedules an update to all the back markers in the document.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • VirtualRenderer.updateBreakpoints()
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • Void

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Redraw breakpoints.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Redraw breakpoints.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • VirtualRenderer.updateCursor()
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • Void

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Updates the cursor icon.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Updates the cursor icon.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • VirtualRenderer.updateFontSize()
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • Void

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Updates the font size.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Updates the font size.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • VirtualRenderer.updateFrontMarkers()
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • Void

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Schedules an update to all the front markers in the document.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Schedules an update to all the front markers in the document.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • VirtualRenderer.updateFull()
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • Void

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Triggers a full update of all the layers, for all the rows.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Triggers a full update of all the layers, for all the rows.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • VirtualRenderer.updateLines(Number firstRow, Number lastRow)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • Void

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Triggers a partial update of the text, from the range given by the two parameters.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Triggers a partial update of the text, from the range given by the two parameters.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        firstRowNumberRequired. The first row to update
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        lastRowNumberRequired. The last row to update
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • VirtualRenderer.updateText()
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Void

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Triggers a full update of the text, for all the rows.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Triggers a full update of the text, for all the rows.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • VirtualRenderer.visualizeBlur()
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • Void

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Blurs the current container.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Blurs the current container.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • VirtualRenderer.visualizeFocus()
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • Void

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Focuses the current container.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Focuses the current container.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Constructors

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Constructs a new VirtualRenderer within the container specified, applying the given theme.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Constructs a new VirtualRenderer within the container specified, applying the given theme.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              containerDOMElementRequired. The root element of the editor
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              themeStringRequired. The starting theme

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Methods

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • VirtualRenderer.addGutterDecoration(row, className)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • Void

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Deprecated (moved to EditSession)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Deprecated (moved to EditSession)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • VirtualRenderer.adjustWrapLimit()
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • Void

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Adjusts the wrap limit, which is the number of characters that can fit within the width of the edit area on screen.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Adjusts the wrap limit, which is the number of characters that can fit within the width of the edit area on screen.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • VirtualRenderer.destroy()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Destroys the text and cursor layers for this renderer.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Destroys the text and cursor layers for this renderer.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • VirtualRenderer.getAnimatedScroll()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Returns whether an animated scroll happens or not.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Returns whether an animated scroll happens or not.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Returns the root element containing this renderer.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Returns the root element containing this renderer.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • VirtualRenderer.getFirstFullyVisibleRow()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        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.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        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.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • VirtualRenderer.getFirstVisibleRow()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Returns the index of the first visible row.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Returns the index of the first visible row.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • VirtualRenderer.getHScrollBarAlwaysVisible()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Returns whether the horizontal scrollbar is set to be always visible.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Returns whether the horizontal scrollbar is set to be always visible.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • VirtualRenderer.getLastFullyVisibleRow()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              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.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              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.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • VirtualRenderer.getLastVisibleRow()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Returns the index of the last visible row.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Returns the index of the last visible row.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Returns the element that the mouse events are attached to

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Returns the element that the mouse events are attached to

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • VirtualRenderer.getPrintMarginColumn()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Returns whether the print margin column is being shown or not.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Returns whether the print margin column is being shown or not.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • VirtualRenderer.getScrollBottomRow()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Returns the last visible row, regardless of whether it's fully visible or not.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Returns the last visible row, regardless of whether it's fully visible or not.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Returns the value of the distance between the left of the editor and the leftmost part of the visible content.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Returns the value of the distance between the left of the editor and the leftmost part of the visible content.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Returns the value of the distance between the top of the editor and the topmost part of the visible content.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Returns the value of the distance between the top of the editor and the topmost part of the visible content.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • VirtualRenderer.getScrollTopRow()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Returns the first visible row, regardless of whether it's fully visible or not.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Returns the first visible row, regardless of whether it's fully visible or not.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • VirtualRenderer.getShowGutter()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Returns true if the gutter is being shown.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Returns true if the gutter is being shown.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • VirtualRenderer.getShowInvisibles()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Returns whether invisible characters are being shown or not.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Returns whether invisible characters are being shown or not.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • VirtualRenderer.getShowPrintMargin()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Returns whetherthe print margin is being shown or not.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Returns whetherthe print margin is being shown or not.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Returns the element to which the hidden text area is added.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Returns the element to which the hidden text area is added.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • VirtualRenderer.getTheme()

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Returns the path of the current theme.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Returns the path of the current theme.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • VirtualRenderer.hideComposition()
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • Void

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Hides the current composition.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Hides the current composition.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • VirtualRenderer.hideCursor()
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • Void

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Hides the cursor icon.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Hides the cursor icon.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Returns true if you can still scroll by either parameter; in other words, you haven't reached the end of the file or line.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Returns true if you can still scroll by either parameter; in other words, you haven't reached the end of the file or line.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  deltaXNumberRequired. The x value to scroll by
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  deltaYNumberRequired. The y value to scroll by
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • VirtualRenderer.onResize(Boolean force)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • Void

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Triggers a resize of the editor.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Triggers a resize of the editor.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    forceBooleanRequired. If true, recomputes the size, even if the height and width haven't changed
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • VirtualRenderer.removeGutterDecoration(row, className)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • Void

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Deprecated (moved to EditSession)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Deprecated (moved to EditSession)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Scrolls the editor across both x- and y-axes.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Scrolls the editor across both x- and y-axes.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      deltaXNumberRequired. The x value to scroll by
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      deltaYNumberRequired. The y value to scroll by
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • VirtualRenderer.scrollCursorIntoView(cursor, offset)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • Void

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Scrolls the cursor into the first visibile area of the editor

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Scrolls the cursor into the first visibile area of the editor

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Gracefully scrolls the editor to the row indicated.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Gracefully scrolls the editor to the row indicated.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        lineNumberRequired. A line number
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        centerBooleanRequired. If true, centers the editor the to indicated line
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        animateBooleanRequired. If true animates scrolling
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        callbackFunctionRequired. Function to be called after the animation has finished

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Gracefully scrolls the top of the editor to the row indicated.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Gracefully scrolls the top of the editor to the row indicated.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        rowNumberRequired. A row id

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Scrolls the editor to the x pixel indicated.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Scrolls the editor to the x pixel indicated.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        scrollLeftNumberRequired. The position to scroll to

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Scrolls the editor to the y pixel indicated.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Scrolls the editor to the y pixel indicated.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        scrollTopNumberRequired. The position to scroll to
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • VirtualRenderer.setAnimatedScroll(Boolean shouldAnimate)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Void

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Identifies whether you want to have an animated scroll or not.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Identifies whether you want to have an animated scroll or not.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          shouldAnimateBooleanRequired. Set to true to show animated scrolls
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • VirtualRenderer.setAnnotations(Array annotations)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • Void

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Sets annotations for the gutter.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Sets annotations for the gutter.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            annotationsArrayRequired. An array containing annotations
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • VirtualRenderer.setCompositionText(String text)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • Void

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Sets the inner text of the current composition to text.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Sets the inner text of the current composition to text.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              textStringRequired. A string of text to use
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • VirtualRenderer.setHScrollBarAlwaysVisible(Boolean alwaysVisible)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • Void

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Identifies whether you want to show the horizontal scrollbar or not.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Identifies whether you want to show the horizontal scrollbar or not.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                alwaysVisibleBooleanRequired. Set to true to make the horizontal scroll bar visible
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • VirtualRenderer.setPadding(Number padding)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • Void

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Sets the padding for all the layers.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Sets the padding for all the layers.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  paddingNumberRequired. A new padding value (in pixels)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • VirtualRenderer.setPrintMarginColumn(Boolean showPrintMargin)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Identifies whether you want to show the print margin column or not.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Identifies whether you want to show the print margin column or not.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    showPrintMarginBooleanRequired. Set to true to show the print margin column
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • VirtualRenderer.setSession(session)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • Void

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Associates an EditSession.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Associates an EditSession.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • VirtualRenderer.setShowGutter(Boolean show)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • Void

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Identifies whether you want to show the gutter or not.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Identifies whether you want to show the gutter or not.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        showBooleanRequired. Set to true to show the gutter
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • VirtualRenderer.setShowInvisibles(Boolean showInvisibles)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Void

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Identifies whether you want to show invisible characters or not.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Identifies whether you want to show invisible characters or not.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          showInvisiblesBooleanRequired. Set to true to show invisibles
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • VirtualRenderer.setShowPrintMargin(Boolean showPrintMargin)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Identifies whether you want to show the print margin or not.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Identifies whether you want to show the print margin or not.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            showPrintMarginBooleanRequired. Set to true to show the print margin
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • VirtualRenderer.setStyle(String style)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • Void

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Adds a new class, style, to the editor.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Adds a new class, style, to the editor.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              styleStringRequired. A class name
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • VirtualRenderer.setTheme(String theme)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • Void

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Sets a new theme for the editor. theme should exist, and be a directory path, like ace/theme/textmate.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Sets a new theme for the editor. theme should exist, and be a directory path, like ace/theme/textmate.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                themeStringRequired. The path to a theme
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • VirtualRenderer.showComposition(Number position)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • Void
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • Internal

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                positionNumberRequired.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • VirtualRenderer.showCursor()
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • Void

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Shows the cursor icon.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Shows the cursor icon.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Returns an object containing the pageX and pageY coordinates of the document position.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Returns an object containing the pageX and pageY coordinates of the document position.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  rowNumberRequired. The document row position
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  columnNumberRequired. The document column position
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • VirtualRenderer.unsetStyle(String style)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • Void

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Removes the class style from the editor.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Removes the class style from the editor.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    styleStringRequired. A class name
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • VirtualRenderer.updateBackMarkers()
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • Void

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Schedules an update to all the back markers in the document.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Schedules an update to all the back markers in the document.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • VirtualRenderer.updateBreakpoints()
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • Void

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Redraw breakpoints.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Redraw breakpoints.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • VirtualRenderer.updateCursor()
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Void

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Updates the cursor icon.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Updates the cursor icon.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • VirtualRenderer.updateFontSize()
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • Void

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Updates the font size.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Updates the font size.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • VirtualRenderer.updateFrontMarkers()
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • Void

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Schedules an update to all the front markers in the document.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Schedules an update to all the front markers in the document.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • VirtualRenderer.updateFull()
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • Void

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Triggers a full update of all the layers, for all the rows.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Triggers a full update of all the layers, for all the rows.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • VirtualRenderer.updateLines(Number firstRow, Number lastRow)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • Void

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Triggers a partial update of the text, from the range given by the two parameters.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Triggers a partial update of the text, from the range given by the two parameters.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Arguments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  firstRowNumberRequired. The first row to update
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  lastRowNumberRequired. The last row to update
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • VirtualRenderer.updateText()
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • Void

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Triggers a full update of the text, for all the rows.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Triggers a full update of the text, for all the rows.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • VirtualRenderer.visualizeBlur()
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • Void

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Blurs the current container.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Blurs the current container.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • VirtualRenderer.visualizeFocus()
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • Void

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Focuses the current container.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Focuses the current container.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        diff --git a/doc/resources/ace/templates/lib.jade b/doc/resources/ace/templates/lib.jade index d7d80915..d8437979 100644 --- a/doc/resources/ace/templates/lib.jade +++ b/doc/resources/ace/templates/lib.jade @@ -128,21 +128,14 @@ mixin article(obj, parents) div.sideToggler - if obj.short_description - div(id='ellipsis_#{obj.id}', class='ellipsis_description') - mixin markdown(obj.short_description) - div(id='short_#{obj.id}', class='short_description hiddenSpan') - mixin markdown(obj.description) + div(id='ellipsis_#{obj.id}', class='ellipsis_description') + mixin markdown(obj.short_description) h3(id='#{obj.id}', class='methodToggle methodClicker inactive')     div.description - -description = obj.description.substring(obj.short_description.length) // cut the short_desc out - descArray = description.split("\n#### ") - - if descArray[0].length && descArray[0] !== '' && descArray[0] !== '\n' - mixin markdown(descArray[0]) + mixin markdown(obj.description) if obj.bound && ~obj.bound.indexOf('#') p.note.methodized diff --git a/lib/ace/search.js b/lib/ace/search.js index ad3249b8..73e4c0a3 100644 --- a/lib/ace/search.js +++ b/lib/ace/search.js @@ -56,15 +56,15 @@ var Range = require("./range").Range; * * Creates a new `Search` object. The following search options are avaliable: * - * * needle: string or regular expression - * * backwards: false - * * wrap: false - * * caseSensitive: false - * * wholeWord: false - * * range: Range or null for whole document - * * regExp: false - * * start: Range or position - * * skipCurrent: false + * * `needle`: The string or regular expression you're looking for + * * `backwards`: Whether to search backwards from where cursor currently is. Defaults to `false`. + * * `wrap`: Whether to wrap the search back to the beginning when it hits the end. Defaults to `false`. + * * `caseSensitive`: Whether the search ought to be case-sensitive. Defaults to `false`. + * * `wholeWord`: Whether the search matches only on whole words. Defaults to `false`. + * * `range`: The [[Range]] to search within. Set this to `null` for the whole document + * * `regExp`: Whether the search is a regular expression or not. Defaults to `false`. + * * `start`: The starting [[Range]] or cursor position to begin the search + * * `skipCurrent`: Whether or not to include the current line in the search. Default to `false`. * **/ diff --git a/lib/ace/undomanager.js b/lib/ace/undomanager.js index d53979bd..67c30f38 100644 --- a/lib/ace/undomanager.js +++ b/lib/ace/undomanager.js @@ -63,6 +63,7 @@ var UndoManager = function() { * - options (Object): Contains additional properties * * 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 deltas * * `args[1]` is the document to associate with *