diff --git a/api/ace.html b/api/ace.html index 64a0cc2f..787a8efb 100644 --- a/api/ace.html +++ b/api/ace.html @@ -1,8 +1,5 @@ - - - - Ace - Ace API

The high performance code editor for the web.

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.

+

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 | DOMElement

Required. Either the id of an element, or the element itself

-
\ No newline at end of file +
\ No newline at end of file diff --git a/api/anchor.html b/api/anchor.html index 2a57d4d0..f3f25cd1 100644 --- a/api/anchor.html +++ b/api/anchor.html @@ -1,10 +1,7 @@ - - - - Anchor - Ace API

The high performance code editor for the web.

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.

+

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

docDocument

Required. The document to associate with the anchor

+

Arguments

docDocument

Required. The document to associate with the anchor

rowNumber

Required. The starting row position

columnNumber

Required. The starting column position

Events

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

    Fires whenever the anchor position changes.

    @@ -24,7 +21,7 @@
    columnNumber

    Required. 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 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.

      @@ -33,4 +30,4 @@

      Arguments

      rowNumber

      Required. The row index to move the anchor to

      columnNumber

      Required. The column index to move the anchor to

      noClipBoolean

      Required. Identifies if you want the position to be clipped

      -
      \ No newline at end of file +
      \ No newline at end of file diff --git a/api/background_tokenizer.html b/api/background_tokenizer.html index 4f5936e0..8a11bcee 100644 --- a/api/background_tokenizer.html +++ b/api/background_tokenizer.html @@ -1,11 +1,8 @@ - - - - BackgroundTokenizer - Ace API

      The high performance code editor for the web.

      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.

      +

      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

      tokenizerTokenizer

      Required. The tokenizer to use

      -
      editorEditor

      Required. The editor to associate with

      +

      Arguments

      tokenizerTokenizer

      Required. The tokenizer to use

      +
      editorEditor

      Required. The editor to associate with

      Events

        • BackgroundTokenizer.on("update", function(Object e))

        Fires whenever the background tokeniziers between a range of rows are going to be updated.

        Fires whenever the background tokeniziers between a range of rows are going to be updated.

        Arguments

        eObject

        Required. An object containing two properties, first and last, which indicate the rows of the region being updated.

        @@ -19,15 +16,15 @@

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

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

        Arguments

        rowNumber

        Required. The row to get tokens at

        -
          • BackgroundTokenizer.setDocument(Document doc)

          Sets a new document to associate with this object.

          +
            • BackgroundTokenizer.setDocument(Document doc)

            Sets a new document to associate with this object.

            Sets a new document to associate with this object.

            -

            Arguments

            docDocument

            Required. The new document to associate with

            -
              • BackgroundTokenizer.setTokenizer(Tokenizer tokenizer)

              Sets a new tokenizer for this object.

              +

              Arguments

              docDocument

              Required. 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

                tokenizerTokenizer

                Required. The new tokenizer to use

                +

                Arguments

                tokenizerTokenizer

                Required. The new tokenizer to use

                  • BackgroundTokenizer.start(Number startRow)

                  Starts tokenizing at the row indicated.

                  Starts tokenizing at the row indicated.

                  Arguments

                  startRowNumber

                  Required. The row to start at

                    • BackgroundTokenizer.stop()

                    Stops tokenizing.

                    Stops tokenizing.

                    -
                    \ No newline at end of file +
                    \ No newline at end of file diff --git a/api/command_manager.html b/api/command_manager.html index 5f54b975..b580d309 100644 --- a/api/command_manager.html +++ b/api/command_manager.html @@ -1,8 +1,5 @@ - - - - CommandManager - Ace API

                    The high performance code editor for the web.

                    Constructors

                    TODO

                    +

                    Constructors

                    TODO

                    TODO

                    Arguments

                    platformString

                    Required. Identifier for the platform; must be either 'mac' or 'win'

                    commandsArray

                    Required. A list of commands

                    -
                    \ No newline at end of file +
                    \ No newline at end of file diff --git a/api/document.html b/api/document.html index 192f41dc..577fe66f 100644 --- a/api/document.html +++ b/api/document.html @@ -1,7 +1,4 @@ - - - - Document - Ace API

                    The high performance code editor for the web.

                    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.

                    +

                    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 | Array

                    Required. The starting text

                    @@ -10,23 +7,23 @@

                    Several methods trigger different "change" events. Below is a list of each action type, followed by each property that's also available:

                    Returns

                    Array of Strings

                    A String array, with each index containing a piece of the original text string.

                      • 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.

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

                      Arguments

                      rowNumber

                      Required. The row number to use

                      columnNumber

                      Required. The column number to use

                      @@ -64,9 +61,9 @@
                        • 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.

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

                        -

                        Arguments

                        rangeRange

                        Required. The range to work with

                        +

                        Arguments

                        rangeRange

                        Required. 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

                        positionNumber

                        Required. The position to start inserting at

                        @@ -107,9 +104,9 @@

                        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

                        textString

                        Required. The text to check

                        -

                        Removes the range from the document.

                        +

                        Removes the range from the document.

                        Removes the range from the document.

                        -

                        Arguments

                        rangeRange

                        Required. A specified Range to remove

                        +

                        Arguments

                        rangeRange

                        Required. A specified Range to remove

                        Returns

                        Object

                        Returns the new start property of the range, which contains startRow and startColumn. If range is empty, this function returns the unmodified value of range.start.

                        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.

                        @@ -125,9 +122,9 @@
                          • 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

                          rowNumber

                          Required. The row to check

                          -

                          Replaces a range in the document with the new text.

                          +

                          Replaces a range in the document with the new text.

                          Replaces a range in the document with the new text.

                          -

                          Arguments

                          rangeRange

                          Required. A specified Range to replace

                          +

                          Arguments

                          rangeRange

                          Required. A specified Range to replace

                          textString

                          Required. The new text to use as a replacement

                          Returns

                          Object

                          Returns an object containing the final row and column, like this:

                            @@ -146,4 +143,4 @@
                            • 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

                            textString

                            Required. The text to use

                            -
                            \ No newline at end of file +
                            \ No newline at end of file diff --git a/api/edit_session.html b/api/edit_session.html index 529d0360..64081b69 100644 --- a/api/edit_session.html +++ b/api/edit_session.html @@ -1,10 +1,7 @@ - - - - EditSession - Ace API

                            The high performance code editor for the web.

                            EditSession [edit]

                            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.

                            +

                            EditSession [edit]

                            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 | String

                            Required. If text is a Document, it associates the EditSession with it. Otherwise, a new Document is created, with the initial text

                            +

                            Arguments

                            textDocument | String

                            Required. If text is a Document, it associates the EditSession with it. Otherwise, a new Document is created, with the initial text

                            modeTextMode

                            Required. The inital language mode to use for the document

                            Events

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

                              Emitted when the document changes.

                              Emitted when the document changes.

                              @@ -57,7 +54,7 @@
                            • The second value contains the position of the document column that this function read until.

                            • -
                                • EditSession.$getUndoSelection(deltas, isUndo, lastUndoRange)
                                • Internal
                                • EditSession.$resetRowCache(Number row)
                                • Internal

                              Arguments

                              rowNumber

                              Required. The row to work with

                              +
                                • EditSession.$getUndoSelection(deltas, isUndo, lastUndoRange)
                                • Internal
                                • EditSession.$resetRowCache(Number row)
                                • Internal

                              Arguments

                              rowNumber

                              Required. 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

                              markerObject

                              Required. object with update method

                              @@ -66,9 +63,9 @@

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

                              Arguments

                              rowNumber

                              Required. The row number

                              classNameString

                              Required. 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.

                              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

                              rangeRange

                              Required. Define the range of the marker

                              +

                              Arguments

                              rangeRange

                              Required. Define the range of the marker

                              clazzString

                              Required. Set the CSS class for the marker

                              typeFunction | String

                              Required. Identify the type of the marker

                              inFrontBoolean

                              Required. Set to true to establish a front marker

                              @@ -82,7 +79,7 @@

                              Arguments

                              rowNumber

                              Required. 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.

                                +
                                  • 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

                                docRowNumber

                                Required. The document row to check

                                docColumnNumber

                                Required. The document column to check

                                @@ -94,22 +91,22 @@

                                Returns

                                Number

                                Returns the number of new rows added; in other words, lastRow - firstRow + 1.

                                  • 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.

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

                                  Arguments

                                  rowNumber

                                  Required. The row number to start from

                                  columnNumber

                                  Required. 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.

                                    Returns the Document associated with this session.

                                      • EditSession.getDocumentLastRowColumnPosition(docRow, docColumn)
                                      • Internal
                                      • EditSession.getDocumentLastRowColumnPosition(docRow, docColumn)
                                      • Internal
                                      • Related to:

                                    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

                                    rowNumber

                                    Required. 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.

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

                                    Arguments

                                    firstRowNumber

                                    Required. The first row index to retrieve

                                    lastRowNumber

                                    Required. The final row index to retrieve

                                    @@ -118,14 +115,14 @@

                                    Arguments

                                    inFrontBoolean

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

                                    Returns the current text mode.

                                    Returns the current text mode.

                                    -
                                      • EditSession.getNewLineMode()
                                      • Related to:

                                    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

                                    rowNumber

                                    Required. The row number to check

                                    -
                                      • EditSession.getRowSplitData(row)
                                      • Internal
                                      • EditSession.getRowSplitData(row)
                                      • Internal
                                      • Internal
                                      • Related to:

                                    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

                                    screenRowNumber

                                    Required. The screen row to check

                                      • EditSession.getScreenLength()

                                      Returns the length of the screen.

                                      @@ -141,24 +138,24 @@

                                      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

                                        rowNumber

                                        Required. 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.

                                            +
                                              • Related to:

                                            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

                                            rangeString

                                            Required. 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

                                            rowNumber

                                            Required. The row number to retrieve from

                                            columnNumber

                                            Required. 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

                                            rowNumber

                                            Required. The row to start at

                                            -

                                            Returns the current undo manager.

                                            +

                                            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.

                                              @@ -166,9 +163,9 @@

                                              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.

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

                                                Arguments

                                                rowNumber

                                                Required. The row to start at

                                                columnNumber

                                                Required. The column to start at

                                                @@ -183,7 +180,7 @@

                                                Arguments

                                                startRowNumber

                                                Required. Starting row

                                                endRowNumber

                                                Required. Ending row

                                                indentStringString

                                                Required. The indent token

                                                -

                                                Inserts a block of text and the indicated position.

                                                Inserts a block of text and the indicated position.

                                                Arguments

                                                positionNumber

                                                Required. The position to start inserting at

                                                textString

                                                Required. A chunk of text to insert

                                                @@ -191,34 +188,34 @@

                                                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

                                                positionObject

                                                Required. The position to check

                                                -

                                                Arguments

                                                firstRowNumber

                                                Required. The starting row to move down

                                                lastRowNumber

                                                Required. The final row to move down

                                                Returns

                                                Number

                                                If firstRow is less-than or equal to 0, this function returns 0. Otherwise, on success, it returns -1.

                                                -

                                                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

                                                firstRowNumber

                                                Required. The starting row to move up

                                                lastRowNumber

                                                Required. The final row to move up

                                                Returns

                                                Number

                                                If firstRow is less-than or equal to 0, this function returns 0. Otherwise, on success, it returns -1.

                                                -

                                                { row: newRowLocation, column: newColumnLocation }

                                                +

                                                { row: newRowLocation, column: newColumnLocation }

                                                { row: newRowLocation, column: newColumnLocation }

                                                -

                                                Arguments

                                                fromRangeRange

                                                Required. The range of text you want moved within the document

                                                +

                                                Arguments

                                                fromRangeRange

                                                Required. The range of text you want moved within the document

                                                toPositionObject

                                                Required. The location (row and column) where you want to move the text to

                                                -

                                                Returns

                                                Range

                                                The new range where the text was moved to.

                                                +

                                                Returns

                                                Range

                                                The new range where the text was moved to.

                                                • Moves a range of text from the given range to the given position. toPosition is an object that looks like this:
                                                -
                                                  • EditSession.onReloadTokenizer(e)

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

                                                  -

                                                  Reloads all the tokens on the current session. This function calls BackgroundTokenizer.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.

                                                    +
                                                      • EditSession.onReloadTokenizer(e)

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

                                                      +

                                                      Reloads all the tokens on the current session. This function calls BackgroundTokenizer.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

                                                        rangeRange

                                                        Required. A range of rows

                                                        -

                                                        Re-implements a previously undone change to your document.

                                                        +

                                                        Arguments

                                                        rangeRange

                                                        Required. A range of rows

                                                        +

                                                        Re-implements a previously undone change to your document.

                                                        Re-implements a previously undone change to your document.

                                                        Arguments

                                                        deltasArray

                                                        Required. An array of previous changes

                                                        dontSelectBoolean

                                                        Required. 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

                                                        rangeRange

                                                        Required. A specified Range to remove

                                                        +

                                                        Arguments

                                                        rangeRange

                                                        Required. A specified Range to remove

                                                        Returns

                                                        Object

                                                        The new start property of the range, which contains startRow and startColumn. If range is empty, this function returns the unmodified value of range.start.

                                                          • EditSession.removeGutterDecoration(Number row, String className)
                                                            • Void

                                                          Removes className from the row.

                                                          Removes className from the row.

                                                          @@ -227,9 +224,9 @@
                                                            • 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

                                                            markerIdNumber

                                                            Required. 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

                                                            rangeRange

                                                            Required. A specified Range to replace

                                                            +

                                                            Arguments

                                                            rangeRange

                                                            Required. A specified Range to replace

                                                            textString

                                                            Required. The new text to use as a replacement

                                                            Returns

                                                            Object

                                                            Returns an object containing the final row and column, like this:

                                                              @@ -240,7 +237,7 @@
                                                            • If the text is the exact same as what currently exists, this function returns an object containing the current range.end value.

                                                            -
                                                              • 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.

                                                            +
                                                              • EditSession.screenToDocumentColumn(screenRow, screenColumn)
                                                              • Internal
                                                              • Related to:

                                                            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

                                                            screenRowNumber

                                                            Required. The screen row to check

                                                            screenColumnNumber

                                                            Required. The screen column to check

                                                            @@ -255,13 +252,13 @@
                                                              • 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

                                                              rowsArray

                                                              Required. 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.

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

                                                              -

                                                              Arguments

                                                              docDocument

                                                              Required. 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

                                                              docDocument

                                                              Required. 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

                                                              modeTextMode

                                                              Required. Set a new text mode

                                                              -
                                                                • EditSession.setNewLineMode(String newLineMode)
                                                                • Related to:

                                                              Sets the new line mode.

                                                              Sets the new line mode.

                                                              Arguments

                                                              newLineModeString

                                                              Required. 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.

                                                                @@ -276,9 +273,9 @@
                                                                  • 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

                                                                  tabSizeNumber

                                                                  Required. The new tab size

                                                                  -

                                                                  Sets the undo manager.

                                                                  +

                                                                  Sets the undo manager.

                                                                  Sets the undo manager.

                                                                  -

                                                                  Arguments

                                                                  undoManagerUndoManager

                                                                  Required. The new undo manager

                                                                  +

                                                                  Arguments

                                                                  undoManagerUndoManager

                                                                  Required. 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

                                                                    enableBoolean

                                                                    Required. If true, selects the range of the reinserted change

                                                                    @@ -300,10 +297,10 @@
                                                                    maxNumber

                                                                    Required. 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.

                                                                      Reverts previous changes to your document.

                                                                      Arguments

                                                                      deltasArray

                                                                      Required. An array of previous changes

                                                                      dontSelectBoolean

                                                                      Required. If true, doesn't select the range of where the change occured

                                                                      -
                                                                      \ No newline at end of file +
                                                                      \ No newline at end of file diff --git a/api/editor.html b/api/editor.html index 362697c2..a7798f30 100644 --- a/api/editor.html +++ b/api/editor.html @@ -1,11 +1,8 @@ - - - - Editor - Ace API

                                                                      The high performance code editor for the web.

                                                                      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.

                                                                      +

                                                                      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

                                                                      rendererVirtualRenderer

                                                                      Required. Associated VirtualRenderer that draws everything

                                                                      -
                                                                      sessionEditSession

                                                                      Required. The EditSession to refer to

                                                                      +

                                                                      Arguments

                                                                      rendererVirtualRenderer

                                                                      Required. Associated VirtualRenderer that draws everything

                                                                      +
                                                                      sessionEditSession

                                                                      Required. 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.

                                                                          @@ -16,9 +13,9 @@
                                                                            • Editor.on("changeSession", function(Object e))

                                                                            Emitted whenever the EditSession changes.

                                                                            -

                                                                            Emitted whenever the EditSession changes.

                                                                            -

                                                                            Arguments

                                                                            eObject

                                                                            Required. An object with two properties, oldSession and session, that represent the old and new EditSessions.

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

                                                                              Emitted whenever the EditSession changes.

                                                                              +

                                                                              Emitted whenever the EditSession changes.

                                                                              +

                                                                              Arguments

                                                                              eObject

                                                                              Required. An object with two properties, oldSession and session, that represent the old and new EditSessions.

                                                                                • Editor.on("copy", function(String text))

                                                                                Emitted when text is copied.

                                                                                Emitted when text is copied.

                                                                                Arguments

                                                                                textString

                                                                                Required. The copied text

                                                                                @@ -35,29 +32,29 @@
                                                                                  • 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

                                                                                moverFunction

                                                                                Required. A method to call on each selected row

                                                                                -
                                                                                  • Editor.$updateHighlightActiveLine()
                                                                                  • Internal
                                                                                  • Editor.addSelectionMarker(Range orientedRange)

                                                                                  Adds the selection and cursor.

                                                                                  +
                                                                                    • Editor.$updateHighlightActiveLine()
                                                                                    • Internal
                                                                                    • Editor.addSelectionMarker(Range orientedRange)

                                                                                    Adds the selection and cursor.

                                                                                    Adds the selection and cursor.

                                                                                    -

                                                                                    Arguments

                                                                                    orientedRangeRange

                                                                                    Required. A range containing a cursor

                                                                                    -

                                                                                    Outdents the current line.

                                                                                    +

                                                                                    Arguments

                                                                                    orientedRangeRange

                                                                                    Required. A range containing a cursor

                                                                                    +
                                                                                      • Editor.blockOutdent()
                                                                                      • Related to:

                                                                                    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.

                                                                                        +
                                                                                          • Editor.clearSelection()
                                                                                          • Related to:

                                                                                        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.

                                                                                        -
                                                                                          • Related to:

                                                                                        Copies all the selected lines down one row.

                                                                                        Copies all the selected lines down one row.

                                                                                        Returns

                                                                                        Number

                                                                                        On success, returns the number of new rows added; in other words, lastRow - firstRow + 1.

                                                                                        -
                                                                                          • Related to:

                                                                                        Copies all the selected lines up one row.

                                                                                        Copies all the selected lines up one row.

                                                                                        Returns

                                                                                        Number

                                                                                        On success, returns 0.

                                                                                          • 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.

                                                                                            +

                                                                                            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

                                                                                            needleString

                                                                                            Required. The text to search for (optional)

                                                                                            optionsObject

                                                                                            Required. An object defining various search properties

                                                                                            animateBoolean

                                                                                            Required. If true animate scrolling

                                                                                            @@ -66,12 +63,12 @@

                                                                                            Arguments

                                                                                            needleString

                                                                                            Required. The text to find

                                                                                            optionsObject

                                                                                            Required. The search options

                                                                                            additiveBoolean

                                                                                            Required. 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.

                                                                                            +

                                                                                            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

                                                                                            optionsObject

                                                                                            Required. search options

                                                                                            animateBoolean

                                                                                            Required. 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.

                                                                                            +

                                                                                            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

                                                                                            optionsObject

                                                                                            Required. search options

                                                                                            animateBoolean

                                                                                            Required. If true animate scrolling

                                                                                              • Editor.focus()

                                                                                              Brings the current textInput into focus.

                                                                                              @@ -84,29 +81,29 @@

                                                                                              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.

                                                                                              -
                                                                                                • Editor.getCursorPosition()
                                                                                                • Related to:

                                                                                              Gets the current position of the cursor.

                                                                                              Gets the current position of the cursor.

                                                                                              Returns

                                                                                              Object

                                                                                              This returns an object that looks something like this:

                                                                                              • { row: currRow, column: currCol }
                                                                                              -
                                                                                                • Editor.getCursorPositionScreen()
                                                                                                • Related to:

                                                                                              Returns the screen position of the cursor.

                                                                                              Returns the screen position of the cursor.

                                                                                              Returns the current mouse drag delay.

                                                                                              Returns the current mouse drag delay.

                                                                                              -
                                                                                                • Editor.getFirstVisibleRow()
                                                                                                • Related to:

                                                                                              Returns the index of the first visible row.

                                                                                              Returns the index of the first visible row.

                                                                                                • 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.

                                                                                                  +
                                                                                                    • Editor.getKeyboardHandler()
                                                                                                    • Related to:

                                                                                                  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.

                                                                                                  -
                                                                                                    • Editor.getLastSearchOptions()
                                                                                                    • Related to:

                                                                                                  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.

                                                                                                  +
                                                                                                    • Editor.getLastVisibleRow()
                                                                                                    • Related to:

                                                                                                  Returns the index of the last visible row.

                                                                                                  Returns the index of the last visible row.

                                                                                                  -
                                                                                                    • Related to:

                                                                                                  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.

                                                                                                    @@ -116,11 +113,11 @@

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

                                                                                                    Returns the currently highlighted selection.

                                                                                                    Returns the currently highlighted selection.

                                                                                                    -
                                                                                                      • Editor.getSelectionRange()
                                                                                                      • Related to:

                                                                                                    Returns the Range for the selected text.

                                                                                                    +

                                                                                                    Returns the Range for the selected text.

                                                                                                      • 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 the current session being used.

                                                                                                      Returns true if the fold widgets are shown.

                                                                                                      Returns true if the fold widgets are shown.

                                                                                                      @@ -128,9 +125,9 @@

                                                                                                      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.

                                                                                                      -
                                                                                                        • Related to:

                                                                                                      Returns the path of the current theme.

                                                                                                      Returns the path of the current theme.

                                                                                                      -
                                                                                                        • Related to:

                                                                                                      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.

                                                                                                      @@ -141,7 +138,7 @@

                                                                                                      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.

                                                                                                        -
                                                                                                          • Editor.indent()
                                                                                                          • Related to:

                                                                                                        Indents the current line.

                                                                                                        Indents the current line.

                                                                                                        Inserts text into wherever the cursor is pointing.

                                                                                                        Inserts text into wherever the cursor is pointing.

                                                                                                        @@ -156,25 +153,25 @@

                                                                                                        Arguments

                                                                                                        rowNumber

                                                                                                        Required. 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.

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

                                                                                                          Arguments

                                                                                                          rowNumber

                                                                                                          Required. The new row number

                                                                                                          columnNumber

                                                                                                          Required. The new column number

                                                                                                          -
                                                                                                            • Editor.moveCursorToPosition(Object pos)
                                                                                                            • Related to:

                                                                                                          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

                                                                                                          posObject

                                                                                                          Required. An object with two properties, row and column

                                                                                                          -
                                                                                                            • Related to:

                                                                                                          Shifts all the selected lines down one row.

                                                                                                          Shifts all the selected lines down one row.

                                                                                                          Returns

                                                                                                          Number

                                                                                                          On success, it returns -1.

                                                                                                          -
                                                                                                            • Related to:

                                                                                                          Shifts all the selected lines up one row.

                                                                                                          Shifts all the selected lines up one row.

                                                                                                          Returns

                                                                                                          Number

                                                                                                          On success, it returns -1.

                                                                                                          -

                                                                                                          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:

                                                                                                          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 }

                                                                                                          -

                                                                                                          Arguments

                                                                                                          fromRangeRange

                                                                                                          Required. The range of text you want moved within the document

                                                                                                          +

                                                                                                          Arguments

                                                                                                          fromRangeRange

                                                                                                          Required. The range of text you want moved within the document

                                                                                                          toPositionObject

                                                                                                          Required. The location (row and column) where you want to move the text to

                                                                                                          -

                                                                                                          Returns

                                                                                                          Range

                                                                                                          The new range where the text was moved to.

                                                                                                          +

                                                                                                          Returns

                                                                                                          Range

                                                                                                          The new range where the text was moved 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

                                                                                                            timesNumber

                                                                                                            Required. The number of times to change navigation

                                                                                                            @@ -192,7 +189,7 @@
                                                                                                              • 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

                                                                                                              timesNumber

                                                                                                              Required. 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.

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

                                                                                                              Arguments

                                                                                                              rowNumber

                                                                                                              Required. The new row number

                                                                                                              columnNumber

                                                                                                              Required. The new column number

                                                                                                              @@ -210,16 +207,16 @@

                                                                                                              Called whenever a text "paste" happens.

                                                                                                              Called whenever a text "paste" happens.

                                                                                                              Arguments

                                                                                                              textString

                                                                                                              Required. The pasted text

                                                                                                              -

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

                                                                                                              +
                                                                                                                • Editor.redo()
                                                                                                                • Related to:

                                                                                                              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

                                                                                                              dirString

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

                                                                                                              -

                                                                                                              Removes all the lines in the current selection

                                                                                                              +
                                                                                                                • Editor.removeLines()
                                                                                                                • Related to:

                                                                                                              Removes all the lines in the current selection

                                                                                                              Removes all the lines in the current selection

                                                                                                              -
                                                                                                                • Editor.removeSelectionMarker(Range range)

                                                                                                                Removes the selection marker.

                                                                                                                +
                                                                                                                  • Editor.removeSelectionMarker(Range range)

                                                                                                                  Removes the selection marker.

                                                                                                                  Removes the selection marker.

                                                                                                                  -

                                                                                                                  Arguments

                                                                                                                  rangeRange

                                                                                                                  Required. The selection range added with addSelectionMarker().

                                                                                                                  +

                                                                                                                  Arguments

                                                                                                                  rangeRange

                                                                                                                  Required. 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.

                                                                                                                      @@ -231,28 +228,28 @@

                                                                                                                      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

                                                                                                                      replacementString

                                                                                                                      Required. The text to replace with

                                                                                                                      -
                                                                                                                      optionsObject

                                                                                                                      Required. The Search options to use

                                                                                                                      +
                                                                                                                      optionsObject

                                                                                                                      Required. 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

                                                                                                                      replacementString

                                                                                                                      Required. The text to replace with

                                                                                                                      -
                                                                                                                      optionsObject

                                                                                                                      Required. The Search options to use

                                                                                                                      -
                                                                                                                      optionsObject

                                                                                                                      Required. The Search options to use

                                                                                                                      +
                                                                                                                        • Related to:

                                                                                                                      Triggers a resize of the editor.

                                                                                                                      Triggers a resize of the editor.

                                                                                                                      Arguments

                                                                                                                      forceBoolean

                                                                                                                      Required. If true, recomputes the size, even if the height and width haven't changed

                                                                                                                        • 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

                                                                                                                          lineNumber

                                                                                                                          Required. The line to scroll to

                                                                                                                          centerBoolean

                                                                                                                          Required. If true

                                                                                                                          animateBoolean

                                                                                                                          Required. If true animates scrolling

                                                                                                                          callbackFunction

                                                                                                                          Required. Function to be called when the animation has finished

                                                                                                                          -
                                                                                                                            • Editor.scrollToRow(Number row)
                                                                                                                            • Related to:

                                                                                                                          Moves the editor to the specified row.

                                                                                                                          Moves the editor to the specified row.

                                                                                                                          Arguments

                                                                                                                          rowNumber

                                                                                                                          Required. The row to move to

                                                                                                                          -
                                                                                                                            • Editor.selectAll()
                                                                                                                            • Related 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.

                                                                                                                          @@ -283,7 +280,7 @@

                                                                                                                          Arguments

                                                                                                                          shouldHighlightBoolean

                                                                                                                          Required. 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.

                                                                                                                            +
                                                                                                                              • Editor.setOverwrite(Boolean overwrite)
                                                                                                                              • Related to:

                                                                                                                            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

                                                                                                                            overwriteBoolean

                                                                                                                            Required. Defines wheter or not to set overwrites

                                                                                                                              • Editor.setPrintMarginColumn(Number showPrintMargin)

                                                                                                                              Sets the column defining where the print margin should be.

                                                                                                                              @@ -298,9 +295,9 @@
                                                                                                                                • 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

                                                                                                                                styleString

                                                                                                                                Required. 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.

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

                                                                                                                                -

                                                                                                                                Arguments

                                                                                                                                sessionEditSession

                                                                                                                                Required. The new session to use

                                                                                                                                +

                                                                                                                                Arguments

                                                                                                                                sessionEditSession

                                                                                                                                Required. 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

                                                                                                                                  showBoolean

                                                                                                                                  Required. Specifies whether the fold widgets are shown

                                                                                                                                  @@ -310,13 +307,13 @@
                                                                                                                                    • 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

                                                                                                                                    showPrintMarginBoolean

                                                                                                                                    Required. Specifies whether or not to show the print margin

                                                                                                                                    -
                                                                                                                                      • Related to:

                                                                                                                                    Adds a new class, style, to the editor.

                                                                                                                                    Adds a new class, style, to the editor.

                                                                                                                                    Arguments

                                                                                                                                    styleString

                                                                                                                                    Required. A class name

                                                                                                                                    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

                                                                                                                                    themeString

                                                                                                                                    Required. The path to a theme

                                                                                                                                    -

                                                                                                                                    Sets the current document to val.

                                                                                                                                    Sets the current document to val.

                                                                                                                                    Arguments

                                                                                                                                    valString

                                                                                                                                    Required. The new value to set for the document

                                                                                                                                    cursorPosNumber

                                                                                                                                    Required. Where to set the new value. undefined or 0 is selectAll, -1 is at the document start, and 1 is at the end

                                                                                                                                    @@ -324,7 +321,7 @@

                                                                                                                                    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.

                                                                                                                                      +
                                                                                                                                        • Editor.toggleOverwrite()
                                                                                                                                        • Related to:

                                                                                                                                      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.

                                                                                                                                        @@ -335,10 +332,10 @@
                                                                                                                                          • Editor.transposeSelections(Number dir)

                                                                                                                                          Transposes the selected ranges.

                                                                                                                                          Transposes the selected ranges.

                                                                                                                                          Arguments

                                                                                                                                          dirNumber

                                                                                                                                          Required. The direction to rotate selections

                                                                                                                                          -

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

                                                                                                                                          +
                                                                                                                                            • Editor.undo()
                                                                                                                                            • Related to:

                                                                                                                                          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.

                                                                                                                                          -
                                                                                                                                            • Editor.unsetStyle(style)
                                                                                                                                            • Related to:

                                                                                                                                          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.

                                                                                                                                            -
                                                                                                                                            \ No newline at end of file +
                                                                                                                                            \ No newline at end of file diff --git a/api/index.html b/api/index.html index 32e65c8f..a4f1f307 100644 --- a/api/index.html +++ b/api/index.html @@ -1,7 +1,4 @@ - - - - Ace API

                                                                                                                                            The high performance code editor for the web.

                                                                                                                                            Ace API Reference

                                                                                                                                            +

                                                                                                                                            Ace API Reference

                                                                                                                                            Welcome to the Ace API Reference Guide. Ace is a standalone code editor written in JavaScript that you can embed onto any website. We're used in a bunch of places already, like GitHub, Google, and Facebook.

                                                                                                                                            On the left, you'll find a list of all of our currently documented classes. There are plenty more to do, but these represent the "core" set. For more information on how to work with Ace, check out the main Ace website.

                                                                                                                                            -
                                                                                                                                            \ No newline at end of file +
                                                                                                                                            \ No newline at end of file diff --git a/api/placeholder.html b/api/placeholder.html index 45e7601e..98aa0b55 100644 --- a/api/placeholder.html +++ b/api/placeholder.html @@ -1,10 +1,7 @@ - - - - PlaceHolder - Ace API

                                                                                                                                            The high performance code editor for the web.

                                                                                                                                            TODO

                                                                                                                                            -

                                                                                                                                            Constructors

                                                                                                                                            TODO

                                                                                                                                            +

                                                                                                                                            TODO

                                                                                                                                            +

                                                                                                                                            Constructors

                                                                                                                                            TODO

                                                                                                                                            TODO

                                                                                                                                            -

                                                                                                                                            Arguments

                                                                                                                                            sessionDocument

                                                                                                                                            Required. The document to associate with the anchor

                                                                                                                                            +

                                                                                                                                            Arguments

                                                                                                                                            sessionDocument

                                                                                                                                            Required. The document to associate with the anchor

                                                                                                                                            lengthNumber

                                                                                                                                            Required. The starting row position

                                                                                                                                            posNumber

                                                                                                                                            Required. The starting column position

                                                                                                                                            othersString

                                                                                                                                            Required.

                                                                                                                                            @@ -18,10 +15,10 @@

                                                                                                                                            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.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

                                                                                                                                                      -
                                                                                                                                                      \ No newline at end of file +
                                                                                                                                                      \ No newline at end of file diff --git a/api/range.html b/api/range.html index 9ed3122e..19f69645 100644 --- a/api/range.html +++ b/api/range.html @@ -1,7 +1,4 @@ - - - - Range - Ace API

                                                                                                                                                      The high performance code editor for the web.

                                                                                                                                                      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.

                                                                                                                                                      +

                                                                                                                                                      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

                                                                                                                                                      startRowNumber

                                                                                                                                                      Required. The starting row

                                                                                                                                                      @@ -120,7 +117,7 @@
                                                                                                                                                    • Otherwise, it returns the value after calling compare().

                                                                                                                                                    • -

                                                                                                                                                      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.

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

                                                                                                                                                      Arguments

                                                                                                                                                      pRange

                                                                                                                                                      Required. A point to compare with

                                                                                                                                                      Returns

                                                                                                                                                      Number

                                                                                                                                                      This method returns one of the following numbers:

                                                                                                                                                      @@ -161,7 +158,7 @@ -

                                                                                                                                                      Compares this range (A) with another range (B).

                                                                                                                                                      Compares this range (A) with another range (B).

                                                                                                                                                      Arguments

                                                                                                                                                      rangeRange

                                                                                                                                                      Required. A range to compare with

                                                                                                                                                      Returns

                                                                                                                                                      Number

                                                                                                                                                      This method returns one of the following numbers:

                                                                                                                                                      @@ -238,13 +235,13 @@ -

                                                                                                                                                      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:

                                                                                                                                                      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

                                                                                                                                                      Arguments

                                                                                                                                                      rowNumber

                                                                                                                                                      Required. A row to check for

                                                                                                                                                      columnNumber

                                                                                                                                                      Required. 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.

                                                                                                                                                      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

                                                                                                                                                      rangeRange

                                                                                                                                                      Required. 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.

                                                                                                                                                      @@ -255,15 +252,15 @@

                                                                                                                                                      Creates and returns a new Range based on the row and column of the given parameters.

                                                                                                                                                      Arguments

                                                                                                                                                      startRange

                                                                                                                                                      Required. A starting point to use

                                                                                                                                                      endRange

                                                                                                                                                      Required. 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

                                                                                                                                                      rowNumber

                                                                                                                                                      Required. A row point to compare with

                                                                                                                                                      columnNumber

                                                                                                                                                      Required. 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

                                                                                                                                                      rowNumber

                                                                                                                                                      Required. A row point to compare with

                                                                                                                                                      columnNumber

                                                                                                                                                      Required. 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

                                                                                                                                                      rowNumber

                                                                                                                                                      Required. A row point to compare with

                                                                                                                                                      columnNumber

                                                                                                                                                      Required. A column point to compare with

                                                                                                                                                      @@ -291,10 +288,10 @@

                                                                                                                                                      Sets the starting row and column for the range.

                                                                                                                                                      Arguments

                                                                                                                                                      rowNumber

                                                                                                                                                      Required. A row point to set

                                                                                                                                                      columnNumber

                                                                                                                                                      Required. 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.

                                                                                                                                                      Given the current Range, this function converts those starting and ending points into screen positions, and then returns a new Range object.

                                                                                                                                                      -

                                                                                                                                                      Arguments

                                                                                                                                                      sessionEditSession

                                                                                                                                                      Required. The EditSession to retrieve coordinates from

                                                                                                                                                      +

                                                                                                                                                      Arguments

                                                                                                                                                      sessionEditSession

                                                                                                                                                      Required. 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]

                                                                                                                                                      -
                                                                                                                                                      \ No newline at end of file +
                                                                                                                                                      \ No newline at end of file diff --git a/api/renderloop.html b/api/renderloop.html index 19626ea2..26aa4d16 100644 --- a/api/renderloop.html +++ b/api/renderloop.html @@ -1,6 +1,3 @@ - - - - RenderLoop - Ace API

                                                                                                                                                      The high performance code editor for the web.

                                                                                                                                                      Batches changes (that force something to be redrawn) in the background.

                                                                                                                                                      +

                                                                                                                                                      Batches changes (that force something to be redrawn) in the background.

                                                                                                                                                      Constructors

                                                                                                                                                        • new RenderLoop(onRender, win)
                                                                                                                                                        • Internal

                                                                                                                                                      Methods

                                                                                                                                                        • RenderLoop.schedule(Array change)
                                                                                                                                                        • Internal

                                                                                                                                                      Arguments

                                                                                                                                                      changeArray

                                                                                                                                                      Required.

                                                                                                                                                      -
                                                                                                                                                      \ No newline at end of file +
                                                                                                                                                      \ No newline at end of file diff --git a/api/resources/csses/ace_api.css b/api/resources/csses/ace_api.css index 83c8e8f7..f849dcf7 100644 --- a/api/resources/csses/ace_api.css +++ b/api/resources/csses/ace_api.css @@ -1,25 +1,20 @@ /* Generic "affects everything" stuff */ -body { - min-width: 1010px; - color: #2D2D2D; - background: #EDF5FA url(../images/main_bg.png) 0 0 repeat; + +#wrapper .content .column2 { + float: none; } -ul { +#documentation ul { font-size: 13px; } -li { +#documentation li { color: black; } -a, a:hover { - color : #00438a; -} - -code { +#documentation code { font-size: 12px; line-height: 16px; font-family: 'Ubuntu Mono',Monaco,Consolas,monospace !important; @@ -32,7 +27,7 @@ code { color: inherit; } -pre { +#documentation pre { margin-top: 10px; border-radius: none; box-shadow: none; @@ -51,29 +46,29 @@ pre { background : white; } -pre code { +#documentation pre code { background-color: transparent; border-radius: none; box-shadow: none; } -a code { +#documentation a code { color: #00438a; } -h2 { +#documentation h2 { font-size: 26px; } -p { +#documentation p { font-size: 13px; line-height : 20px; margin-bottom : 13px; } -li p:last-child { +#documentation li p:last-child { margin-bottom : 5px; } -blockquote p{ +#documentation blockquote p{ font-size: 14px; font-weight: 500; line-height: 23px; @@ -150,6 +145,10 @@ form.navbar-search { float: none; } +form.navbar-search .search-query { + background-color: #FFFFFF; +} + h3.api_title { padding-top: 10px; } @@ -281,8 +280,8 @@ ul.menu { } .srolled .membersContent { /*top : 0;*/ - width : 695px; - padding-left : 407px; + width: 625px; + padding-left: 330px; margin : 0 auto 0 auto; } .membersBackground { @@ -332,14 +331,12 @@ li.dropdown { font-weight: bold; } - -.backToMDN, .editInC9 { +.editInC9 { font-size: 11px; color: #657383; - margin : 0 0 0 5px; } -.backToMDN a, .editInC9 a { +.editInC9 a { color: #657383; font-weight: normal; position : relative; @@ -347,7 +344,7 @@ li.dropdown { } .tabs { - padding-top: 10px; + padding-top: 14px; /*border-bottom: 1px solid #848484;*/ min-height : 27px; padding-bottom : 5px; @@ -512,10 +509,6 @@ header.filler { margin-bottom: 3px; } -#sidebarContainer { - margin-right: 60px; -} - #sidebar { margin-top: 9px; /*background: url(../images/sidebar-border.png) repeat-y right 0;*/ @@ -535,6 +528,7 @@ header.filler { } #documentation { + padding-left: 15px; padding-bottom: 10px; } @@ -542,6 +536,11 @@ header.filler { border-top: 1px solid #e9e9e9; padding: 16px 10px 2px; } + +#documentation h3.sectionHeader + article.article { + border-top: none; +} + div#documentation article:last-child { border-bottom: 1px solid #e9e9e9; padding-bottom: 40px; @@ -673,7 +672,7 @@ li.signature { cursor: pointer; } -.signature-call a { +#documentation .signature-call a { color: #8e487e; } @@ -720,14 +719,14 @@ li.signature { text-transform: capitalize; } -.alias a, .related-to a { +#documentation .alias a, #documentation .related-to a { color: #ffffff; /* text-decoration: underline; */ } -.alias a:hover, .related-to a:hover { +#documentation .alias a:hover, #documentation .related-to a:hover { text-decoration: none; } -.alias:hover, .related-to:hover { +.#documentation alias:hover, #documentation .related-to:hover { opacity: 0.8; cursor: pointer; } @@ -967,25 +966,3 @@ body #dsq-reply h3{ #dsq-global-toolbar, #dsq-pagination, .dsq-trackback-url{ display : none; } - -/* Sticky footer stuff */ - -* { - margin: 0; -} -html, body { - height: 100%; -} -#nonFooter { - height: 100%; - margin: 0 auto -40px; /* the bottom margin is the negative value of the footer's height */ -} -div.push { - height: 40px; /* .push must be the same height as .footer */ -} -#footer, div.push { -clear: both; -} -#footer { - margin-top: 40px; -} \ No newline at end of file diff --git a/api/resources/csses/font-awesome.css b/api/resources/csses/font-awesome.css new file mode 100644 index 00000000..4697599c --- /dev/null +++ b/api/resources/csses/font-awesome.css @@ -0,0 +1,303 @@ +/* Font Awesome + the iconic font designed for use with Twitter Bootstrap + ------------------------------------------------------- + The full suite of pictographic icons, examples, and documentation + can be found at: http://fortawesome.github.com/Font-Awesome/ + + License + ------------------------------------------------------- + The Font Awesome webfont, CSS, and LESS files are licensed under CC BY 3.0: + http://creativecommons.org/licenses/by/3.0/ A mention of + 'Font Awesome - http://fortawesome.github.com/Font-Awesome' in human-readable + source code is considered acceptable attribution (most common on the web). + If human readable source code is not available to the end user, a mention in + an 'About' or 'Credits' screen is considered acceptable (most common in desktop + or mobile software). + + Contact + ------------------------------------------------------- + Email: dave@davegandy.com + Twitter: http://twitter.com/fortaweso_me + Work: http://lemonwi.se co-founder + + */ +@font-face { + font-family: "FontAwesome"; + src: url('../font/fontawesome-webfont.eot'); + src: url('../font/fontawesome-webfont.eot?#iefix') format('eot'), url('../font/fontawesome-webfont.woff') format('woff'), url('../font/fontawesome-webfont.ttf') format('truetype'), url('../font/fontawesome-webfont.svg#FontAwesome') format('svg'); + font-weight: normal; + font-style: normal; +} + +/* Font Awesome styles + ------------------------------------------------------- */ +[class^="icon-"]:before, [class*=" icon-"]:before { + font-family: FontAwesome; + font-weight: normal; + font-style: normal; + display: inline-block; + text-decoration: inherit; +} +a [class^="icon-"], a [class*=" icon-"] { + display: inline-block; + text-decoration: inherit; +} +/* makes the font 33% larger relative to the icon container */ +.icon-large:before { + vertical-align: top; + font-size: 1.3333333333333333em; +} +.btn [class^="icon-"], .btn [class*=" icon-"] { + /* keeps button heights with and without icons the same */ + + line-height: .9em; +} +li [class^="icon-"], li [class*=" icon-"] { + display: inline-block; + width: 1.25em; + text-align: center; +} +li .icon-large[class^="icon-"], li .icon-large[class*=" icon-"] { + /* 1.5 increased font size for icon-large * 1.25 width */ + + width: 1.875em; +} +li[class^="icon-"], li[class*=" icon-"] { + margin-left: 0; + list-style-type: none; +} +li[class^="icon-"]:before, li[class*=" icon-"]:before { + text-indent: -2em; + text-align: center; +} +li[class^="icon-"].icon-large:before, li[class*=" icon-"].icon-large:before { + text-indent: -1.3333333333333333em; +} +/* Font Awesome uses the Unicode Private Use Area (PUA) to ensure screen + readers do not read off random characters that represent icons */ +.icon-glass:before { content: "\f000"; } +.icon-music:before { content: "\f001"; } +.icon-search:before { content: "\f002"; } +.icon-envelope:before { content: "\f003"; } +.icon-heart:before { content: "\f004"; } +.icon-star:before { content: "\f005"; } +.icon-star-empty:before { content: "\f006"; } +.icon-user:before { content: "\f007"; } +.icon-film:before { content: "\f008"; } +.icon-th-large:before { content: "\f009"; } +.icon-th:before { content: "\f00a"; } +.icon-th-list:before { content: "\f00b"; } +.icon-ok:before { content: "\f00c"; } +.icon-remove:before { content: "\f00d"; } +.icon-zoom-in:before { content: "\f00e"; } + +.icon-zoom-out:before { content: "\f010"; } +.icon-off:before { content: "\f011"; } +.icon-signal:before { content: "\f012"; } +.icon-cog:before { content: "\f013"; } +.icon-trash:before { content: "\f014"; } +.icon-home:before { content: "\f015"; } +.icon-file:before { content: "\f016"; } +.icon-time:before { content: "\f017"; } +.icon-road:before { content: "\f018"; } +.icon-download-alt:before { content: "\f019"; } +.icon-download:before { content: "\f01a"; } +.icon-upload:before { content: "\f01b"; } +.icon-inbox:before { content: "\f01c"; } +.icon-play-circle:before { content: "\f01d"; } +.icon-repeat:before { content: "\f01e"; } + +/* \f020 doesn't work in Safari. all shifted one down */ +.icon-refresh:before { content: "\f021"; } +.icon-list-alt:before { content: "\f022"; } +.icon-lock:before { content: "\f023"; } +.icon-flag:before { content: "\f024"; } +.icon-headphones:before { content: "\f025"; } +.icon-volume-off:before { content: "\f026"; } +.icon-volume-down:before { content: "\f027"; } +.icon-volume-up:before { content: "\f028"; } +.icon-qrcode:before { content: "\f029"; } +.icon-barcode:before { content: "\f02a"; } +.icon-tag:before { content: "\f02b"; } +.icon-tags:before { content: "\f02c"; } +.icon-book:before { content: "\f02d"; } +.icon-bookmark:before { content: "\f02e"; } +.icon-print:before { content: "\f02f"; } + +.icon-camera:before { content: "\f030"; } +.icon-font:before { content: "\f031"; } +.icon-bold:before { content: "\f032"; } +.icon-italic:before { content: "\f033"; } +.icon-text-height:before { content: "\f034"; } +.icon-text-width:before { content: "\f035"; } +.icon-align-left:before { content: "\f036"; } +.icon-align-center:before { content: "\f037"; } +.icon-align-right:before { content: "\f038"; } +.icon-align-justify:before { content: "\f039"; } +.icon-list:before { content: "\f03a"; } +.icon-indent-left:before { content: "\f03b"; } +.icon-indent-right:before { content: "\f03c"; } +.icon-facetime-video:before { content: "\f03d"; } +.icon-picture:before { content: "\f03e"; } + +.icon-pencil:before { content: "\f040"; } +.icon-map-marker:before { content: "\f041"; } +.icon-adjust:before { content: "\f042"; } +.icon-tint:before { content: "\f043"; } +.icon-edit:before { content: "\f044"; } +.icon-share:before { content: "\f045"; } +.icon-check:before { content: "\f046"; } +.icon-move:before { content: "\f047"; } +.icon-step-backward:before { content: "\f048"; } +.icon-fast-backward:before { content: "\f049"; } +.icon-backward:before { content: "\f04a"; } +.icon-play:before { content: "\f04b"; } +.icon-pause:before { content: "\f04c"; } +.icon-stop:before { content: "\f04d"; } +.icon-forward:before { content: "\f04e"; } + +.icon-fast-forward:before { content: "\f050"; } +.icon-step-forward:before { content: "\f051"; } +.icon-eject:before { content: "\f052"; } +.icon-chevron-left:before { content: "\f053"; } +.icon-chevron-right:before { content: "\f054"; } +.icon-plus-sign:before { content: "\f055"; } +.icon-minus-sign:before { content: "\f056"; } +.icon-remove-sign:before { content: "\f057"; } +.icon-ok-sign:before { content: "\f058"; } +.icon-question-sign:before { content: "\f059"; } +.icon-info-sign:before { content: "\f05a"; } +.icon-screenshot:before { content: "\f05b"; } +.icon-remove-circle:before { content: "\f05c"; } +.icon-ok-circle:before { content: "\f05d"; } +.icon-ban-circle:before { content: "\f05e"; } + +.icon-arrow-left:before { content: "\f060"; } +.icon-arrow-right:before { content: "\f061"; } +.icon-arrow-up:before { content: "\f062"; } +.icon-arrow-down:before { content: "\f063"; } +.icon-share-alt:before { content: "\f064"; } +.icon-resize-full:before { content: "\f065"; } +.icon-resize-small:before { content: "\f066"; } +.icon-plus:before { content: "\f067"; } +.icon-minus:before { content: "\f068"; } +.icon-asterisk:before { content: "\f069"; } +.icon-exclamation-sign:before { content: "\f06a"; } +.icon-gift:before { content: "\f06b"; } +.icon-leaf:before { content: "\f06c"; } +.icon-fire:before { content: "\f06d"; } +.icon-eye-open:before { content: "\f06e"; } + +.icon-eye-close:before { content: "\f070"; } +.icon-warning-sign:before { content: "\f071"; } +.icon-plane:before { content: "\f072"; } +.icon-calendar:before { content: "\f073"; } +.icon-random:before { content: "\f074"; } +.icon-comment:before { content: "\f075"; } +.icon-magnet:before { content: "\f076"; } +.icon-chevron-up:before { content: "\f077"; } +.icon-chevron-down:before { content: "\f078"; } +.icon-retweet:before { content: "\f079"; } +.icon-shopping-cart:before { content: "\f07a"; } +.icon-folder-close:before { content: "\f07b"; } +.icon-folder-open:before { content: "\f07c"; } +.icon-resize-vertical:before { content: "\f07d"; } +.icon-resize-horizontal:before { content: "\f07e"; } + +.icon-bar-chart:before { content: "\f080"; } +.icon-twitter-sign:before { content: "\f081"; } +.icon-facebook-sign:before { content: "\f082"; } +.icon-camera-retro:before { content: "\f083"; } +.icon-key:before { content: "\f084"; } +.icon-cogs:before { content: "\f085"; } +.icon-comments:before { content: "\f086"; } +.icon-thumbs-up:before { content: "\f087"; } +.icon-thumbs-down:before { content: "\f088"; } +.icon-star-half:before { content: "\f089"; } +.icon-heart-empty:before { content: "\f08a"; } +.icon-signout:before { content: "\f08b"; } +.icon-linkedin-sign:before { content: "\f08c"; } +.icon-pushpin:before { content: "\f08d"; } +.icon-external-link:before { content: "\f08e"; } + +.icon-signin:before { content: "\f090"; } +.icon-trophy:before { content: "\f091"; } +.icon-github-sign:before { content: "\f092"; } +.icon-upload-alt:before { content: "\f093"; } +.icon-lemon:before { content: "\f094"; } +.icon-phone:before { content: "\f095"; } +.icon-check-empty:before { content: "\f096"; } +.icon-bookmark-empty:before { content: "\f097"; } +.icon-phone-sign:before { content: "\f098"; } +.icon-twitter:before { content: "\f099"; } +.icon-facebook:before { content: "\f09a"; } +.icon-github:before { content: "\f09b"; } +.icon-unlock:before { content: "\f09c"; } +.icon-credit-card:before { content: "\f09d"; } +.icon-rss:before { content: "\f09e"; } + +.icon-hdd:before { content: "\f0a0"; } +.icon-bullhorn:before { content: "\f0a1"; } +.icon-bell:before { content: "\f0a2"; } +.icon-certificate:before { content: "\f0a3"; } +.icon-hand-right:before { content: "\f0a4"; } +.icon-hand-left:before { content: "\f0a5"; } +.icon-hand-up:before { content: "\f0a6"; } +.icon-hand-down:before { content: "\f0a7"; } +.icon-circle-arrow-left:before { content: "\f0a8"; } +.icon-circle-arrow-right:before { content: "\f0a9"; } +.icon-circle-arrow-up:before { content: "\f0aa"; } +.icon-circle-arrow-down:before { content: "\f0ab"; } +.icon-globe:before { content: "\f0ac"; } +.icon-wrench:before { content: "\f0ad"; } +.icon-tasks:before { content: "\f0ae"; } + +.icon-filter:before { content: "\f0b0"; } +.icon-briefcase:before { content: "\f0b1"; } +.icon-fullscreen:before { content: "\f0b2"; } + +.icon-group:before { content: "\f0c0"; } +.icon-link:before { content: "\f0c1"; } +.icon-cloud:before { content: "\f0c2"; } +.icon-beaker:before { content: "\f0c3"; } +.icon-cut:before { content: "\f0c4"; } +.icon-copy:before { content: "\f0c5"; } +.icon-paper-clip:before { content: "\f0c6"; } +.icon-save:before { content: "\f0c7"; } +.icon-sign-blank:before { content: "\f0c8"; } +.icon-reorder:before { content: "\f0c9"; } +.icon-list-ul:before { content: "\f0ca"; } +.icon-list-ol:before { content: "\f0cb"; } +.icon-strikethrough:before { content: "\f0cc"; } +.icon-underline:before { content: "\f0cd"; } +.icon-table:before { content: "\f0ce"; } + +.icon-magic:before { content: "\f0d0"; } +.icon-truck:before { content: "\f0d1"; } +.icon-pinterest:before { content: "\f0d2"; } +.icon-pinterest-sign:before { content: "\f0d3"; } +.icon-google-plus-sign:before { content: "\f0d4"; } +.icon-google-plus:before { content: "\f0d5"; } +.icon-money:before { content: "\f0d6"; } +.icon-caret-down:before { content: "\f0d7"; } +.icon-caret-up:before { content: "\f0d8"; } +.icon-caret-left:before { content: "\f0d9"; } +.icon-caret-right:before { content: "\f0da"; } +.icon-columns:before { content: "\f0db"; } +.icon-sort:before { content: "\f0dc"; } +.icon-sort-down:before { content: "\f0dd"; } +.icon-sort-up:before { content: "\f0de"; } + +.icon-envelope-alt:before { content: "\f0e0"; } +.icon-linkedin:before { content: "\f0e1"; } +.icon-undo:before { content: "\f0e2"; } +.icon-legal:before { content: "\f0e3"; } +.icon-dashboard:before { content: "\f0e4"; } +.icon-comment-alt:before { content: "\f0e5"; } +.icon-comments-alt:before { content: "\f0e6"; } +.icon-bolt:before { content: "\f0e7"; } +.icon-sitemap:before { content: "\f0e8"; } +.icon-umbrella:before { content: "\f0e9"; } +.icon-paste:before { content: "\f0ea"; } + +.icon-user-md:before { content: "\f200"; } diff --git a/api/resources/font/fontawesome-webfont.eot b/api/resources/font/fontawesome-webfont.eot new file mode 100644 index 00000000..89070c1e Binary files /dev/null and b/api/resources/font/fontawesome-webfont.eot differ diff --git a/api/resources/font/fontawesome-webfont.svg b/api/resources/font/fontawesome-webfont.svg new file mode 100644 index 00000000..1245f92c --- /dev/null +++ b/api/resources/font/fontawesome-webfont.svg @@ -0,0 +1,255 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/api/resources/font/fontawesome-webfont.ttf b/api/resources/font/fontawesome-webfont.ttf new file mode 100644 index 00000000..c17e9f8d Binary files /dev/null and b/api/resources/font/fontawesome-webfont.ttf differ diff --git a/api/resources/font/fontawesome-webfont.woff b/api/resources/font/fontawesome-webfont.woff new file mode 100644 index 00000000..09f2469a Binary files /dev/null and b/api/resources/font/fontawesome-webfont.woff differ diff --git a/api/resources/javascripts/bbq.js b/api/resources/javascripts/bbq.js new file mode 100644 index 00000000..bcbf2483 --- /dev/null +++ b/api/resources/javascripts/bbq.js @@ -0,0 +1,18 @@ +/* + * jQuery BBQ: Back Button & Query Library - v1.2.1 - 2/17/2010 + * http://benalman.com/projects/jquery-bbq-plugin/ + * + * Copyright (c) 2010 "Cowboy" Ben Alman + * Dual licensed under the MIT and GPL licenses. + * http://benalman.com/about/license/ + */ +(function($,p){var i,m=Array.prototype.slice,r=decodeURIComponent,a=$.param,c,l,v,b=$.bbq=$.bbq||{},q,u,j,e=$.event.special,d="hashchange",A="querystring",D="fragment",y="elemUrlAttr",g="location",k="href",t="src",x=/^.*\?|#.*$/g,w=/^.*\#/,h,C={};function E(F){return typeof F==="string"}function B(G){var F=m.call(arguments,1);return function(){return G.apply(this,F.concat(m.call(arguments)))}}function n(F){return F.replace(/^[^#]*#?(.*)$/,"$1")}function o(F){return F.replace(/(?:^[^?#]*\?([^#]*).*$)?.*/,"$1")}function f(H,M,F,I,G){var O,L,K,N,J;if(I!==i){K=F.match(H?/^([^#]*)\#?(.*)$/:/^([^#?]*)\??([^#]*)(#?.*)/);J=K[3]||"";if(G===2&&E(I)){L=I.replace(H?w:x,"")}else{N=l(K[2]);I=E(I)?l[H?D:A](I):I;L=G===2?I:G===1?$.extend({},I,N):$.extend({},N,I);L=a(L);if(H){L=L.replace(h,r)}}O=K[1]+(H?"#":L||!K[1]?"?":"")+L+J}else{O=M(F!==i?F:p[g][k])}return O}a[A]=B(f,0,o);a[D]=c=B(f,1,n);c.noEscape=function(G){G=G||"";var F=$.map(G.split(""),encodeURIComponent);h=new RegExp(F.join("|"),"g")};c.noEscape(",/");$.deparam=l=function(I,F){var H={},G={"true":!0,"false":!1,"null":null};$.each(I.replace(/\+/g," ").split("&"),function(L,Q){var K=Q.split("="),P=r(K[0]),J,O=H,M=0,R=P.split("]["),N=R.length-1;if(/\[/.test(R[0])&&/\]$/.test(R[N])){R[N]=R[N].replace(/\]$/,"");R=R.shift().split("[").concat(R);N=R.length-1}else{N=0}if(K.length===2){J=r(K[1]);if(F){J=J&&!isNaN(J)?+J:J==="undefined"?i:G[J]!==i?G[J]:J}if(N){for(;M<=N;M++){P=R[M]===""?O.length:R[M];O=O[P]=M').hide().insertAfter("body")[0].contentWindow;q=function(){return a(n.document[c][l])};o=function(u,s){if(u!==s){var t=n.document;t.open().close();t[c].hash="#"+u}};o(a())}}m.start=function(){if(r){return}var t=a();o||p();(function s(){var v=a(),u=q(t);if(v!==t){o(t=v,u);$(i).trigger(d)}else{if(u!==t){i[c][l]=i[c][l].replace(/#.*/,"")+"#"+u}}r=setTimeout(s,$[d+"Delay"])})()};m.stop=function(){if(!n){r&&clearTimeout(r);r=0}};return m})()})(jQuery,this); \ No newline at end of file diff --git a/api/resources/javascripts/bootstrap-tab.js b/api/resources/javascripts/bootstrap-tab.js new file mode 100644 index 00000000..070deb8f --- /dev/null +++ b/api/resources/javascripts/bootstrap-tab.js @@ -0,0 +1,135 @@ +/* ======================================================== + * bootstrap-tab.js v2.1.1 + * http://twitter.github.com/bootstrap/javascript.html#tabs + * ======================================================== + * Copyright 2012 Twitter, Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ======================================================== */ + + +!function ($) { + + "use strict"; // jshint ;_; + + + /* TAB CLASS DEFINITION + * ==================== */ + + var Tab = function (element) { + this.element = $(element) + } + + Tab.prototype = { + + constructor: Tab + + , show: function () { + var $this = this.element + , $ul = $this.closest('ul:not(.dropdown-menu)') + , selector = $this.attr('data-target') + , previous + , $target + , e + + if (!selector) { + selector = $this.attr('href') + selector = selector && selector.replace(/.*(?=#[^\s]*$)/, '') //strip for ie7 + } + + if ( $this.parent('li').hasClass('active') ) return + + previous = $ul.find('.active a').last()[0] + + e = $.Event('show', { + relatedTarget: previous + }) + + $this.trigger(e) + + if (e.isDefaultPrevented()) return + + $target = $(selector) + + this.activate($this.parent('li'), $ul) + this.activate($target, $target.parent(), function () { + $this.trigger({ + type: 'shown' + , relatedTarget: previous + }) + }) + } + + , activate: function ( element, container, callback) { + var $active = container.find('> .active') + , transition = callback + && $.support.transition + && $active.hasClass('fade') + + function next() { + $active + .removeClass('active') + .find('> .dropdown-menu > .active') + .removeClass('active') + + element.addClass('active') + + if (transition) { + element[0].offsetWidth // reflow for transition + element.addClass('in') + } else { + element.removeClass('fade') + } + + if ( element.parent('.dropdown-menu') ) { + element.closest('li.dropdown').addClass('active') + } + + callback && callback() + } + + transition ? + $active.one($.support.transition.end, next) : + next() + + $active.removeClass('in') + } + } + + + /* TAB PLUGIN DEFINITION + * ===================== */ + + $.fn.tab = function ( option ) { + return this.each(function () { + var $this = $(this) + , data = $this.data('tab') + if (!data) $this.data('tab', (data = new Tab(this))) + if (typeof option == 'string') data[option]() + }) + } + + $.fn.tab.Constructor = Tab + + + /* TAB DATA-API + * ============ */ + + $(function () { + $('body').on('click.tab.data-api', '[data-toggle="tab"], [data-toggle="pill"]', function (e) { + e.preventDefault() + $(this).tab('show') + }) + }) + +}(window.jQuery); \ No newline at end of file diff --git a/api/resources/javascripts/clicker.js b/api/resources/javascripts/clicker.js index 3ee3c64d..b5a86168 100644 --- a/api/resources/javascripts/clicker.js +++ b/api/resources/javascripts/clicker.js @@ -1,4 +1,4 @@ -$(document).ready(function () { +function setupClicker() { // when hovering over arrow, add highlight (only if inactive) $("i.methodToggle").hover(function () { if (!$("i.methodToggle").hasClass('active')) @@ -9,9 +9,20 @@ $(document).ready(function () { } ); - // after expanding the hidden description, hide the ellipsis - $("i.methodToggle").click(function() { - var $article = $(this).closest('.article'), + function handleClick(e, linkHref) { + //if (linkHref.indexOf("nav=api&api=") >= 0) + // return; + if (linkHref == "api") + return; + + e.preventDefault(); + + var dstElem; + if (linkHref) { + dstElem = $("article[id='" + linkHref + "']"); + } + + var $article = (dstElem || $(this)).closest('.article'), $arrow = $('i.methodClicker', $article); if (!$article.hasClass('methodToggleOpen') || this.force) { @@ -19,36 +30,37 @@ $(document).ready(function () { $arrow.removeClass('inactive').addClass('active'); var data = $arrow[0].id.replace(/^js_/, ""); - location.hash = data + "#nav=api"; + //var state = {}; + //state.section = data; + //$.bbq.pushState(state); + scrollTo(null, data); } else { $article.removeClass('methodToggleOpen'); $arrow.removeClass('active').addClass('inactive'); } - }); + } - $('.signature-call, .signature-returns', '.signature').click(function() { - var $article = $(this).closest('.article'), - $arrow = $('i.methodClicker', $article); - - if (!$article.hasClass('methodToggleOpen') || this.force) { - $article.addClass('methodToggleOpen'); - $arrow.removeClass('inactive').addClass('active'); - - var data = $arrow[0].id.replace(/^js_/, ""); - location.hash = data + "#nav=api"; - scrollTo(null, data); - } - else { - $article.removeClass('methodToggleOpen'); - $arrow.removeClass('active').addClass('inactive'); - } - }); + function transformHash(e) { + // some bs to figure out link hash + var hashId = (e.srcElement ? e.srcElement.href : (e.hash || e.target.href)) || e.currentTarget.hash; + + handleClick(e, hashId.substring(hashId.indexOf("#") + 1)); + } + + // for the arrow + $("i.methodToggle").click(handleClick); + + // for the signature + $('.member-name').click(handleClick); + + // for the top dropdown + $('li.memberLink a').click(transformHash); + + //$('a[href^="#"]').click(transformHash); $('.related-to', '.metaInfo').click(function(){ location.hash = $(this).find('a').attr('href').split('#')[1]; }); - -}); - +} \ No newline at end of file diff --git a/api/resources/javascripts/disqus-ext.js b/api/resources/javascripts/disqus-ext.js index 81a21f61..66da8bfc 100644 --- a/api/resources/javascripts/disqus-ext.js +++ b/api/resources/javascripts/disqus-ext.js @@ -1,12 +1,22 @@ -var disqus_shortname = 'aceapi'; - -var paths = window.location.pathname.split("/"); -var fileName = paths[paths.length - 2] + "/" + paths[paths.length - 1]; - -var disqus_identifier = fileName; +function setupDisqus() { + var disqus_shortname = 'aceapi'; + var dsqId = "disqusScript"; + + //var paths = window.location.pathname.split("/"); + //var fileName = paths[paths.length - 2] + "/" + paths[paths.length - 1]; + + //var disqus_identifier = fileName; + var lochash = location.hash.substr(1); + var disqus_identifier = "api/" + (lochash.substr(lochash.indexOf('api=')).split('&')[0].split('=')[1] || "index") + ".html"; + (function() { + if (document.getElementById(dsqId)) + (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).removeChild(document.getElementById(dsqId)); + var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; dsq.src = 'https://' + disqus_shortname + '.disqus.com/embed.js'; + dsq.id="disqusScript"; (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); - })(); \ No newline at end of file + })(); +} \ No newline at end of file diff --git a/api/resources/javascripts/ux.js b/api/resources/javascripts/ux.js index b1685551..4a2ffdbd 100644 --- a/api/resources/javascripts/ux.js +++ b/api/resources/javascripts/ux.js @@ -37,7 +37,7 @@ $(function () { }).find('input'); }); -$(document).ready(function () { +function ux() { var d = 'a.menu, .dropdown-toggle' function clearMenus() { @@ -121,7 +121,7 @@ $(document).ready(function () { }); }); - /*$('span.methodClicker, article.article, i.methodClicker').each(function () { + $('span.methodClicker, article.article, i.methodClicker').each(function () { var a = $(this); var constructorPos = a.attr("id").indexOf("new "); @@ -132,13 +132,9 @@ $(document).ready(function () { } a.attr("id", objName); - });*/ - - - + }); + function showMethodContent() { - if (!location.hash) return; - var locationHash = location.hash.replace(/^#/, '').replace(/\./g, '\\.'); var equalsPos = location.hash.indexOf("="); @@ -155,7 +151,7 @@ $(document).ready(function () { } } - if (location.hash) { + if (location.hash.indexOf("section") >= 1) { showMethodContent(); var data = location.hash; scrollTo(null, data.substr(1)); @@ -164,12 +160,12 @@ $(document).ready(function () { window.onhashchange = function () { showMethodContent(); } -}); +}; function scrollTo(el, data) { if (!data) { data = el.getAttribute("data-id"); - location.hash = data; + //location.hash = data; } var el = $("span#" + data.replace(/\./g, "\\."))[0]; if (!el) return; diff --git a/api/scrollbar.html b/api/scrollbar.html index 5cf46366..8ba5848c 100644 --- a/api/scrollbar.html +++ b/api/scrollbar.html @@ -1,7 +1,4 @@ - - - - ScrollBar - Ace API

                                                                                                                                                      The high performance code editor for the web.

                                                                                                                                                      A set of methods for setting and retrieving the editor's scrollbar.

                                                                                                                                                      +

                                                                                                                                                      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

                                                                                                                                                      parentDOMElement

                                                                                                                                                      Required. A DOM element

                                                                                                                                                      @@ -19,4 +16,4 @@
                                                                                                                                                        • ScrollBar.setScrollTop(Number scrollTop)

                                                                                                                                                        Sets the scroll top of the scroll bar.

                                                                                                                                                        Sets the scroll top of the scroll bar.

                                                                                                                                                        Arguments

                                                                                                                                                        scrollTopNumber

                                                                                                                                                        Required. The new scroll top

                                                                                                                                                        -
                                                                                                                                                        \ No newline at end of file +
                                                                                                                                                        \ No newline at end of file diff --git a/api/search.html b/api/search.html index 2e51d956..a2e1f5f3 100644 --- a/api/search.html +++ b/api/search.html @@ -1,7 +1,4 @@ - - - - Search - Ace API

                                                                                                                                                        The high performance code editor for the web.

                                                                                                                                                        A class designed to handle all sorts of text searches within a Document.

                                                                                                                                                        +

                                                                                                                                                        A class designed to handle all sorts of text searches within a Document.

                                                                                                                                                        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:

                                                                                                                                                            @@ -10,18 +7,18 @@
                                                                                                                                                          • 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
                                                                                                                                                          • +
                                                                                                                                                          • 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
                                                                                                                                                          • +
                                                                                                                                                          • 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.
                                                                                                                                                          -

                                                                                                                                                          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

                                                                                                                                                          sessionEditSession

                                                                                                                                                          Required. The session to search with

                                                                                                                                                          -

                                                                                                                                                          Searches for all occurances options.needle. If found, this method returns an array of Ranges 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 Ranges where the text first occurs. If options.backwards is true, the search goes backwards in the session.

                                                                                                                                                          -

                                                                                                                                                          Arguments

                                                                                                                                                          sessionEditSession

                                                                                                                                                          Required. The session to search with

                                                                                                                                                          +

                                                                                                                                                          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

                                                                                                                                                          sessionEditSession

                                                                                                                                                          Required. The session to search with

                                                                                                                                                          +

                                                                                                                                                          Searches for all occurances options.needle. If found, this method returns an array of Ranges 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 Ranges where the text first occurs. If options.backwards is true, the search goes backwards in the session.

                                                                                                                                                          +

                                                                                                                                                          Arguments

                                                                                                                                                          sessionEditSession

                                                                                                                                                          Required. 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.

                                                                                                                                                          @@ -35,4 +32,4 @@

                                                                                                                                                          Sets the search options via the options parameter.

                                                                                                                                                          Sets the search options via the options parameter.

                                                                                                                                                          Arguments

                                                                                                                                                          optionsObject

                                                                                                                                                          Required. An object containing all the new search properties

                                                                                                                                                          -
                                                                                                                                                          \ No newline at end of file +
                                                                                                                                                          \ No newline at end of file diff --git a/api/selection.html b/api/selection.html index d045e4e5..bb08acd7 100644 --- a/api/selection.html +++ b/api/selection.html @@ -1,26 +1,23 @@ - - - - Selection - Ace API

                                                                                                                                                          The high performance code editor for the web.

                                                                                                                                                          Contains the cursor position and the text selection of an edit session.

                                                                                                                                                          +

                                                                                                                                                          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.

                                                                                                                                                          +

                                                                                                                                                          Constructors

                                                                                                                                                          Creates a new Selection object.

                                                                                                                                                          Creates a new Selection object.

                                                                                                                                                          -

                                                                                                                                                          Arguments

                                                                                                                                                          sessionEditSession

                                                                                                                                                          Required. The session to use

                                                                                                                                                          +

                                                                                                                                                          Arguments

                                                                                                                                                          sessionEditSession

                                                                                                                                                          Required. The session to use

                                                                                                                                                          Events

                                                                                                                                                            • Selection.on("changeCursor", function())

                                                                                                                                                            Emitted when the cursor position changes.

                                                                                                                                                            Emitted when the cursor position changes.

                                                                                                                                                              • Selection.on("changeSelection", function())

                                                                                                                                                              Emitted when the cursor selection changes.

                                                                                                                                                              Emitted when the cursor selection changes.

                                                                                                                                                              -

                                                                                                                                                              Methods

                                                                                                                                                              Adds a range to a selection by entering multiselect mode, if necessary.

                                                                                                                                                              +

                                                                                                                                                              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

                                                                                                                                                              rangeRange

                                                                                                                                                              Required. The new range to add

                                                                                                                                                              +

                                                                                                                                                              Arguments

                                                                                                                                                              rangeRange

                                                                                                                                                              Required. The new range to add

                                                                                                                                                              $blockChangeEventsBoolean

                                                                                                                                                              Required. 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.

                                                                                                                                                                  +
                                                                                                                                                                    • Selection.getRange()

                                                                                                                                                                    Returns the Range for the selected text.

                                                                                                                                                                    +

                                                                                                                                                                    Returns the Range for the selected text.

                                                                                                                                                                    +
                                                                                                                                                                      • Selection.getSelectionAnchor()
                                                                                                                                                                      • Related to:

                                                                                                                                                                    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.

                                                                                                                                                                      @@ -32,7 +29,7 @@

                                                                                                                                                                      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

                                                                                                                                                                        -
                                                                                                                                                                          • Related to:

                                                                                                                                                                        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

                                                                                                                                                                        rowsNumber

                                                                                                                                                                        Required. The number of rows to move by

                                                                                                                                                                        charsNumber

                                                                                                                                                                        Required. The number of characters to move by

                                                                                                                                                                        @@ -69,14 +66,14 @@
                                                                                                                                                                        keepDesiredColumnBoolean

                                                                                                                                                                        Required. 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

                                                                                                                                                                          Gets list of ranges composing rectangular block on the screen

                                                                                                                                                                          Arguments

                                                                                                                                                                          screenCursorCursor

                                                                                                                                                                          Required. The cursor to use

                                                                                                                                                                          -
                                                                                                                                                                          screenAnchorAnchor

                                                                                                                                                                          Required. The anchor to use

                                                                                                                                                                          +
                                                                                                                                                                          screenAnchorAnchor

                                                                                                                                                                          Required. The anchor to use

                                                                                                                                                                          includeEmptyLinesBoolean

                                                                                                                                                                          Required. 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.

                                                                                                                                                                            -
                                                                                                                                                                              • Selection.selectAWord()
                                                                                                                                                                              • Related to:

                                                                                                                                                                            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.

                                                                                                                                                                              @@ -103,7 +100,7 @@

                                                                                                                                                                              Arguments

                                                                                                                                                                              posObject

                                                                                                                                                                              Required. An object containing the row and column

                                                                                                                                                                                • Selection.selectUp()

                                                                                                                                                                                Moves the selection up one row.

                                                                                                                                                                                Moves the selection up one row.

                                                                                                                                                                                -
                                                                                                                                                                                  • Selection.selectWord()
                                                                                                                                                                                  • Related to:

                                                                                                                                                                                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.

                                                                                                                                                                                  @@ -113,14 +110,14 @@

                                                                                                                                                                                  Sets the row and column position of the anchor. This function also emits the 'changeSelection' event.

                                                                                                                                                                                  Arguments

                                                                                                                                                                                  rowNumber

                                                                                                                                                                                  Required. The new row

                                                                                                                                                                                  columnNumber

                                                                                                                                                                                  Required. The new column

                                                                                                                                                                                  -

                                                                                                                                                                                  Sets the selection to the provided range.

                                                                                                                                                                                  +

                                                                                                                                                                                  Sets the selection to the provided range.

                                                                                                                                                                                  Sets the selection to the provided range.

                                                                                                                                                                                  -

                                                                                                                                                                                  Arguments

                                                                                                                                                                                  rangeRange

                                                                                                                                                                                  Required. The range of text to select

                                                                                                                                                                                  +

                                                                                                                                                                                  Arguments

                                                                                                                                                                                  rangeRange

                                                                                                                                                                                  Required. The range of text to select

                                                                                                                                                                                  reverseBoolean

                                                                                                                                                                                  Required. 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

                                                                                                                                                                                    columnsNumber

                                                                                                                                                                                    Required. The number of columns to shift by

                                                                                                                                                                                    -

                                                                                                                                                                                    Removes a Range containing pos (if it exists).

                                                                                                                                                                                    +

                                                                                                                                                                                    Removes a Range containing pos (if it exists).

                                                                                                                                                                                    Removes a Range containing pos (if it exists).

                                                                                                                                                                                    -

                                                                                                                                                                                    Arguments

                                                                                                                                                                                    posRange

                                                                                                                                                                                    Required. The position to remove, as a {row, column} object

                                                                                                                                                                                    -
                                                                                                                                                                                    \ No newline at end of file +

                                                                                                                                                                                    Arguments

                                                                                                                                                                                    posRange

                                                                                                                                                                                    Required. The position to remove, as a {row, column} object

                                                                                                                                                                                    +
                                                                                                                                                                                    \ No newline at end of file diff --git a/api/split.html b/api/split.html index c9d0ec90..44c46036 100644 --- a/api/split.html +++ b/api/split.html @@ -1,39 +1,36 @@ - - - - Split - Ace API

                                                                                                                                                                                    The high performance code editor for the web.

                                                                                                                                                                                    Constructors

                                                                                                                                                                                    Arguments

                                                                                                                                                                                    containerDocument

                                                                                                                                                                                    Required. The document to associate with the split

                                                                                                                                                                                    +

                                                                                                                                                                                    Constructors

                                                                                                                                                                                    Arguments

                                                                                                                                                                                    containerDocument

                                                                                                                                                                                    Required. The document to associate with the split

                                                                                                                                                                                    themeString

                                                                                                                                                                                    Required. The name of the initial theme

                                                                                                                                                                                    splitsNumber

                                                                                                                                                                                    Required. The number of initial splits

                                                                                                                                                                                    -

                                                                                                                                                                                    Methods

                                                                                                                                                                                    Blurs the current editor.

                                                                                                                                                                                    +

                                                                                                                                                                                    Methods

                                                                                                                                                                                      • Split.blur()
                                                                                                                                                                                        • Void
                                                                                                                                                                                      • Related to:

                                                                                                                                                                                    Blurs the current editor.

                                                                                                                                                                                    Blurs the current editor.

                                                                                                                                                                                    -

                                                                                                                                                                                    Focuses the current editor.

                                                                                                                                                                                    +
                                                                                                                                                                                      • Split.focus()
                                                                                                                                                                                        • Void
                                                                                                                                                                                      • Related to:

                                                                                                                                                                                    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

                                                                                                                                                                                    callbackFunction

                                                                                                                                                                                    Required. A callback function to execute

                                                                                                                                                                                    scopeString

                                                                                                                                                                                    Required.

                                                                                                                                                                                    -
                                                                                                                                                                                      • Split.getCurrentEditor()

                                                                                                                                                                                      Returns the current editor.

                                                                                                                                                                                      +
                                                                                                                                                                                        • 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.

                                                                                                                                                                                        Returns the editor identified by the index idx.

                                                                                                                                                                                        Arguments

                                                                                                                                                                                        idxNumber

                                                                                                                                                                                        Required. 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.

                                                                                                                                                                                        +
                                                                                                                                                                                          • Split.resize()
                                                                                                                                                                                            • Void
                                                                                                                                                                                          • Internal
                                                                                                                                                                                          • Split.setFontSize(Number size)
                                                                                                                                                                                            • Void
                                                                                                                                                                                          • Related to:

                                                                                                                                                                                        Sets the font size, in pixels, for all the available editors.

                                                                                                                                                                                        Sets the font size, in pixels, for all the available editors.

                                                                                                                                                                                        Arguments

                                                                                                                                                                                        sizeNumber

                                                                                                                                                                                        Required. The new font size

                                                                                                                                                                                          • Split.setKeyboardHandler(String keybinding)
                                                                                                                                                                                            • Void
                                                                                                                                                                                          • Internal

                                                                                                                                                                                        Arguments

                                                                                                                                                                                        keybindingString

                                                                                                                                                                                        Required.

                                                                                                                                                                                          • Split.setOrientation(Number oriantation)
                                                                                                                                                                                            • Void
                                                                                                                                                                                          • Internal

                                                                                                                                                                                        Sets the orientation.

                                                                                                                                                                                        Sets the orientation.

                                                                                                                                                                                        Arguments

                                                                                                                                                                                        oriantationNumber

                                                                                                                                                                                        Required.

                                                                                                                                                                                        -

                                                                                                                                                                                        Sets a new EditSession for the indicated editor.

                                                                                                                                                                                        +

                                                                                                                                                                                        Sets a new EditSession for the indicated editor.

                                                                                                                                                                                        +

                                                                                                                                                                                        Arguments

                                                                                                                                                                                        sessionEditSession

                                                                                                                                                                                        Required. The new edit session

                                                                                                                                                                                        idxNumber

                                                                                                                                                                                        Required. The editor's index you're interested in

                                                                                                                                                                                          • Split.setSplits(Number splits)
                                                                                                                                                                                            • Void
                                                                                                                                                                                          • Internal

                                                                                                                                                                                        Arguments

                                                                                                                                                                                        splitsNumber

                                                                                                                                                                                        Required. The new number of splits

                                                                                                                                                                                        -

                                                                                                                                                                                        Sets a theme for each of the available editors.

                                                                                                                                                                                        +
                                                                                                                                                                                          • Split.setTheme(String theme)
                                                                                                                                                                                            • Void
                                                                                                                                                                                          • Related to:

                                                                                                                                                                                        Sets a theme for each of the available editors.

                                                                                                                                                                                        Sets a theme for each of the available editors.

                                                                                                                                                                                        Arguments

                                                                                                                                                                                        themeString

                                                                                                                                                                                        Required. The name of the theme to set

                                                                                                                                                                                        -
                                                                                                                                                                                          • Split.UndoManagerProxy()
                                                                                                                                                                                            • Void
                                                                                                                                                                                          • Internal
                                                                                                                                                                                        \ No newline at end of file +
                                                                                                                                                                                          • Split.UndoManagerProxy()
                                                                                                                                                                                            • Void
                                                                                                                                                                                          • Internal
                                                                                                                                                                                        \ No newline at end of file diff --git a/api/token_iterator.html b/api/token_iterator.html index 77f2e0f2..a6de2ef9 100644 --- a/api/token_iterator.html +++ b/api/token_iterator.html @@ -1,10 +1,7 @@ - - - - TokenIterator - Ace API

                                                                                                                                                                                        The high performance code editor for the web.

                                                                                                                                                                                        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.

                                                                                                                                                                                        +

                                                                                                                                                                                        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

                                                                                                                                                                                        sessionEditSession

                                                                                                                                                                                        Required. The session to associate with

                                                                                                                                                                                        +

                                                                                                                                                                                        Arguments

                                                                                                                                                                                        sessionEditSession

                                                                                                                                                                                        Required. The session to associate with

                                                                                                                                                                                        initialRowNumber

                                                                                                                                                                                        Required. The row to start the tokenizing at

                                                                                                                                                                                        initialColumnNumber

                                                                                                                                                                                        Required. The column to start the tokenizing at

                                                                                                                                                                                        Methods

                                                                                                                                                                                          • TokenIterator.getCurrentToken()

                                                                                                                                                                                          Returns the current tokenized string.

                                                                                                                                                                                          @@ -18,4 +15,4 @@

                                                                                                                                                                                          Returns

                                                                                                                                                                                          String

                                                                                                                                                                                          If the current point is not at the top of the file, this function returns null. Otherwise, it returns an array of the tokenized strings.

                                                                                                                                                                                            • 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.

                                                                                                                                                                                            -
                                                                                                                                                                                            \ No newline at end of file +
                                                                                                                                                                                            \ No newline at end of file diff --git a/api/tokenizer.html b/api/tokenizer.html index 7ba61563..5ca489e9 100644 --- a/api/tokenizer.html +++ b/api/tokenizer.html @@ -1,11 +1,8 @@ - - - - Tokenizer - Ace API

                                                                                                                                                                                            The high performance code editor for the web.

                                                                                                                                                                                            This class takes a set of highlighting rules, and creates a tokenizer out of them. For more information, see the wiki on extending highlighters.

                                                                                                                                                                                            +

                                                                                                                                                                                            Constructors

                                                                                                                                                                                            Constructs a new tokenizer based on the given rules and flags.

                                                                                                                                                                                            Constructs a new tokenizer based on the given rules and flags.

                                                                                                                                                                                            Arguments

                                                                                                                                                                                            rulesObject

                                                                                                                                                                                            Required. The highlighting rules

                                                                                                                                                                                            flagString

                                                                                                                                                                                            Required. 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.

                                                                                                                                                                                              -
                                                                                                                                                                                              \ No newline at end of file +
                                                                                                                                                                                              \ No newline at end of file diff --git a/api/undomanager.html b/api/undomanager.html index 340c9d8d..da876c91 100644 --- a/api/undomanager.html +++ b/api/undomanager.html @@ -1,7 +1,4 @@ - - - - UndoManager - Ace API

                                                                                                                                                                                              The high performance code editor for the web.

                                                                                                                                                                                              This object maintains the undo stack for an EditSession.

                                                                                                                                                                                              +

                                                                                                                                                                                              This object maintains the undo stack for an EditSession.

                                                                                                                                                                                              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:

                                                                                                                                                                                                  @@ -20,7 +17,7 @@

                                                                                                                                                                                                  Arguments

                                                                                                                                                                                                  dontSelectBoolean

                                                                                                                                                                                                  Required. 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.

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

                                                                                                                                                                                                    Arguments

                                                                                                                                                                                                    dontSelectBoolean

                                                                                                                                                                                                    Required. If true, doesn't select the range of where the change occured

                                                                                                                                                                                                    -
                                                                                                                                                                                                    \ No newline at end of file +
                                                                                                                                                                                                    \ No newline at end of file diff --git a/api/virtual_renderer.html b/api/virtual_renderer.html index d2418df0..b61cb4b5 100644 --- a/api/virtual_renderer.html +++ b/api/virtual_renderer.html @@ -1,13 +1,10 @@ - - - - VirtualRenderer - Ace API

                                                                                                                                                                                                    The high performance code editor for the web.

                                                                                                                                                                                                    The class that is responsible for drawing everything you see on the screen!

                                                                                                                                                                                                    +

                                                                                                                                                                                                    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

                                                                                                                                                                                                    containerDOMElement

                                                                                                                                                                                                    Required. The root element of the editor

                                                                                                                                                                                                    themeString

                                                                                                                                                                                                    Required. The starting theme

                                                                                                                                                                                                    -

                                                                                                                                                                                                    Methods

                                                                                                                                                                                                      • VirtualRenderer.addGutterDecoration(row, className)
                                                                                                                                                                                                      • Deprecated

                                                                                                                                                                                                    Deprecated; (moved to EditSession)

                                                                                                                                                                                                    -

                                                                                                                                                                                                    Deprecated; (moved to EditSession)

                                                                                                                                                                                                    +

                                                                                                                                                                                                    Methods

                                                                                                                                                                                                      • VirtualRenderer.addGutterDecoration(row, className)
                                                                                                                                                                                                      • Deprecated

                                                                                                                                                                                                    Deprecated; (moved to EditSession)

                                                                                                                                                                                                    +

                                                                                                                                                                                                    Deprecated; (moved to EditSession)

                                                                                                                                                                                                      • VirtualRenderer.adjustWrapLimit()

                                                                                                                                                                                                      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.

                                                                                                                                                                                                        @@ -32,9 +29,9 @@

                                                                                                                                                                                                        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.

                                                                                                                                                                                                          +
                                                                                                                                                                                                            • VirtualRenderer.getScrollLeft()
                                                                                                                                                                                                            • Related to:

                                                                                                                                                                                                          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.

                                                                                                                                                                                                          +
                                                                                                                                                                                                            • VirtualRenderer.getScrollTop()
                                                                                                                                                                                                            • Related to:

                                                                                                                                                                                                          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.

                                                                                                                                                                                                            @@ -62,8 +59,8 @@ gutterWidthNumber

                                                                                                                                                                                                            Required. The width of the gutter in pixels

                                                                                                                                                                                                            widthNumber

                                                                                                                                                                                                            Required. The width of the editor in pixels

                                                                                                                                                                                                            heightNumber

                                                                                                                                                                                                            Required. The hiehgt of the editor, in pixels

                                                                                                                                                                                                            -
                                                                                                                                                                                                              • VirtualRenderer.removeGutterDecoration(row, className)
                                                                                                                                                                                                                • Void
                                                                                                                                                                                                              • Deprecated

                                                                                                                                                                                                            Deprecated; (moved to EditSession)

                                                                                                                                                                                                            -

                                                                                                                                                                                                            Deprecated; (moved to EditSession)

                                                                                                                                                                                                            +
                                                                                                                                                                                                              • VirtualRenderer.removeGutterDecoration(row, className)
                                                                                                                                                                                                                • Void
                                                                                                                                                                                                              • Deprecated

                                                                                                                                                                                                            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

                                                                                                                                                                                                            deltaXNumber

                                                                                                                                                                                                            Required. The x value to scroll by

                                                                                                                                                                                                            @@ -76,7 +73,7 @@
                                                                                                                                                                                                            centerBoolean

                                                                                                                                                                                                            Required. If true, centers the editor the to indicated line

                                                                                                                                                                                                            animateBoolean

                                                                                                                                                                                                            Required. If true animates scrolling

                                                                                                                                                                                                            callbackFunction

                                                                                                                                                                                                            Required. Function to be called after the animation has finished

                                                                                                                                                                                                            -
                                                                                                                                                                                                              • VirtualRenderer.scrollToRow(Number row)
                                                                                                                                                                                                              • Related to:

                                                                                                                                                                                                            Gracefully scrolls the top of the editor to the row indicated.

                                                                                                                                                                                                            Gracefully scrolls the top of the editor to the row indicated.

                                                                                                                                                                                                            Arguments

                                                                                                                                                                                                            rowNumber

                                                                                                                                                                                                            Required. A row id

                                                                                                                                                                                                            Scrolls the editor to the x pixel indicated.

                                                                                                                                                                                                            @@ -103,8 +100,8 @@
                                                                                                                                                                                                              • 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

                                                                                                                                                                                                              showPrintMarginBoolean

                                                                                                                                                                                                              Required. Set to true to show the print margin column

                                                                                                                                                                                                              -
                                                                                                                                                                                                                • VirtualRenderer.setShowGutter(Boolean show)

                                                                                                                                                                                                                Identifies whether you want to show the gutter or not.

                                                                                                                                                                                                                Identifies whether you want to show the gutter or not.

                                                                                                                                                                                                                Arguments

                                                                                                                                                                                                                showBoolean

                                                                                                                                                                                                                Required. Set to true to show the gutter

                                                                                                                                                                                                                @@ -153,4 +150,4 @@

                                                                                                                                                                                                                Blurs the current container.

                                                                                                                                                                                                                  • VirtualRenderer.visualizeFocus()

                                                                                                                                                                                                                  Focuses the current container.

                                                                                                                                                                                                                  Focuses the current container.

                                                                                                                                                                                                                  -
                                                                                                                                                                                                                  \ No newline at end of file +
                                                                                                                                                                                                                  \ No newline at end of file diff --git a/doc/build.js b/doc/build.js index c2b1db95..dd64bc31 100644 --- a/doc/build.js +++ b/doc/build.js @@ -1,17 +1,32 @@ +var fs = require("fs"); var path = require("path"); - var panino = require("panino"); - var srcPath = __dirname + "/../lib/ace"; -var buildOptions = { - parseOptions: "./parseOptions.json", - additionalObjs: "./additionalObjs.json" -} - var options = { title : "Ace API", - linkFormat : 'http://example.com/{file}#{line}', + linkFormat : function(linkHtml) { + var href = linkHtml.href; + var o = href.match(/(.+)\.html(#.+)/); + var c = href.match(/#(.+)/); + + if ( o !== null ) { + href = href.replace(href, '#nav=api&api=' + o[1]);// + '§ion=' + o[2]); + } + /*else if (c != null) { + var fileLoc = path.basename(linkHtml.originalFile, path.extname(linkHtml.originalFile)); + var sectionLoc = c[1]; + if (fileLoc.toUpperCase() !== sectionLoc.toUpperCase()) { + href = href.replace(href, '#nav=api&api=' + fileLoc + '§ion=' + sectionLoc); + } + else { + //href = href.replace(href, '#nav=api&api=' + fileLoc); + } + }*/ + linkHtml.href = href; + + return linkHtml; + }, output : "../api/", outputAssets : "../api/resources", skin : "./resources/ace/templates/layout.jade", @@ -35,5 +50,26 @@ panino.parse(files, options, function (err, ast) { console.error(err); process.exit(1); } + + /*fs.readdir(options.output, function (err, files) { + files.forEach(function(file) { + if (file.match(/\.html$/)) { + var outFile = options.output + "/" + file; + fs.readFile(outFile, "utf8", function(err, data) { + var otherPageRegExp = new RegExp(' + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/doc/resources/ace/skeleton/font/fontawesome-webfont.ttf b/doc/resources/ace/skeleton/font/fontawesome-webfont.ttf new file mode 100644 index 00000000..c17e9f8d Binary files /dev/null and b/doc/resources/ace/skeleton/font/fontawesome-webfont.ttf differ diff --git a/doc/resources/ace/skeleton/font/fontawesome-webfont.woff b/doc/resources/ace/skeleton/font/fontawesome-webfont.woff new file mode 100644 index 00000000..09f2469a Binary files /dev/null and b/doc/resources/ace/skeleton/font/fontawesome-webfont.woff differ diff --git a/doc/resources/ace/skeleton/javascripts/clicker.js b/doc/resources/ace/skeleton/javascripts/clicker.js index 3ee3c64d..ddffe520 100644 --- a/doc/resources/ace/skeleton/javascripts/clicker.js +++ b/doc/resources/ace/skeleton/javascripts/clicker.js @@ -1,4 +1,4 @@ -$(document).ready(function () { +function setupClicker() { // when hovering over arrow, add highlight (only if inactive) $("i.methodToggle").hover(function () { if (!$("i.methodToggle").hasClass('active')) @@ -9,9 +9,20 @@ $(document).ready(function () { } ); - // after expanding the hidden description, hide the ellipsis - $("i.methodToggle").click(function() { - var $article = $(this).closest('.article'), + function handleClick(e, linkHref) { + //if (linkHref.indexOf("nav=api&api=") >= 0) + // return; + if (linkHref == "api") + return; + + e.preventDefault(); + + var dstElem; + if (linkHref) { + dstElem = $("article[id='" + linkHref + "']"); + } + + var $article = (dstElem || $(this)).closest('.article'), $arrow = $('i.methodClicker', $article); if (!$article.hasClass('methodToggleOpen') || this.force) { @@ -19,36 +30,37 @@ $(document).ready(function () { $arrow.removeClass('inactive').addClass('active'); var data = $arrow[0].id.replace(/^js_/, ""); - location.hash = data + "#nav=api"; + //var state = {}; + //state.section = data; + //$.bbq.pushState(state); + scrollTo(null, data); } else { $article.removeClass('methodToggleOpen'); $arrow.removeClass('active').addClass('inactive'); } - }); + } - $('.signature-call, .signature-returns', '.signature').click(function() { - var $article = $(this).closest('.article'), - $arrow = $('i.methodClicker', $article); - - if (!$article.hasClass('methodToggleOpen') || this.force) { - $article.addClass('methodToggleOpen'); - $arrow.removeClass('inactive').addClass('active'); - - var data = $arrow[0].id.replace(/^js_/, ""); - location.hash = data + "#nav=api"; - scrollTo(null, data); - } - else { - $article.removeClass('methodToggleOpen'); - $arrow.removeClass('active').addClass('inactive'); - } - }); + function transformHash(e) { + // some bs to figure out link hash + var hashId = (e.srcElement ? e.srcElement.href : (e.hash || e.target.href)) || e.currentTarget.hash; + + handleClick(e, hashId.substring(hashId.indexOf("#") + 1)); + } + + // for the arrow + $("i.methodToggle").click(handleClick); + + // for the signature + $('.member-name').click(handleClick); + + // for the top dropdown + $('li.memberLink a').click(transformHash); + + $('a[href^="#"]').click(transformHash); $('.related-to', '.metaInfo').click(function(){ location.hash = $(this).find('a').attr('href').split('#')[1]; }); - -}); - +} \ No newline at end of file diff --git a/doc/resources/ace/skeleton/javascripts/disqus-ext.js b/doc/resources/ace/skeleton/javascripts/disqus-ext.js index 81a21f61..66da8bfc 100644 --- a/doc/resources/ace/skeleton/javascripts/disqus-ext.js +++ b/doc/resources/ace/skeleton/javascripts/disqus-ext.js @@ -1,12 +1,22 @@ -var disqus_shortname = 'aceapi'; - -var paths = window.location.pathname.split("/"); -var fileName = paths[paths.length - 2] + "/" + paths[paths.length - 1]; - -var disqus_identifier = fileName; +function setupDisqus() { + var disqus_shortname = 'aceapi'; + var dsqId = "disqusScript"; + + //var paths = window.location.pathname.split("/"); + //var fileName = paths[paths.length - 2] + "/" + paths[paths.length - 1]; + + //var disqus_identifier = fileName; + var lochash = location.hash.substr(1); + var disqus_identifier = "api/" + (lochash.substr(lochash.indexOf('api=')).split('&')[0].split('=')[1] || "index") + ".html"; + (function() { + if (document.getElementById(dsqId)) + (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).removeChild(document.getElementById(dsqId)); + var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; dsq.src = 'https://' + disqus_shortname + '.disqus.com/embed.js'; + dsq.id="disqusScript"; (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); - })(); \ No newline at end of file + })(); +} \ No newline at end of file diff --git a/doc/resources/ace/skeleton/javascripts/ux.js b/doc/resources/ace/skeleton/javascripts/ux.js index b1685551..4a2ffdbd 100644 --- a/doc/resources/ace/skeleton/javascripts/ux.js +++ b/doc/resources/ace/skeleton/javascripts/ux.js @@ -37,7 +37,7 @@ $(function () { }).find('input'); }); -$(document).ready(function () { +function ux() { var d = 'a.menu, .dropdown-toggle' function clearMenus() { @@ -121,7 +121,7 @@ $(document).ready(function () { }); }); - /*$('span.methodClicker, article.article, i.methodClicker').each(function () { + $('span.methodClicker, article.article, i.methodClicker').each(function () { var a = $(this); var constructorPos = a.attr("id").indexOf("new "); @@ -132,13 +132,9 @@ $(document).ready(function () { } a.attr("id", objName); - });*/ - - - + }); + function showMethodContent() { - if (!location.hash) return; - var locationHash = location.hash.replace(/^#/, '').replace(/\./g, '\\.'); var equalsPos = location.hash.indexOf("="); @@ -155,7 +151,7 @@ $(document).ready(function () { } } - if (location.hash) { + if (location.hash.indexOf("section") >= 1) { showMethodContent(); var data = location.hash; scrollTo(null, data.substr(1)); @@ -164,12 +160,12 @@ $(document).ready(function () { window.onhashchange = function () { showMethodContent(); } -}); +}; function scrollTo(el, data) { if (!data) { data = el.getAttribute("data-id"); - location.hash = data; + //location.hash = data; } var el = $("span#" + data.replace(/\./g, "\\."))[0]; if (!el) return; diff --git a/doc/resources/ace/templates/common_layout.jade b/doc/resources/ace/templates/common_layout.jade new file mode 100644 index 00000000..137bc570 --- /dev/null +++ b/doc/resources/ace/templates/common_layout.jade @@ -0,0 +1,58 @@ +-var dirPrefix = "./"; +-var sitePrefix = "../doc/site/"; +-var landingPage = 'false' +-var versions = [] + +mixin doctype + !!! 5 + + + + + + +mixin head + meta(http-equiv='Content-Type', content='text/html; charset=UTF-8') + + -if (isIndex) + title #{title} + -else + title #{classId} - #{title} + + meta(name="generator", content="panino-doc-build") + meta(name="description", content="Ace API documentation for the online code editor") + meta(name="author", content="Garen J. Torikian") + + script(src="#{dirPrefix}resources/javascripts/jquery.js") + script(src='#{sitePrefix}/js/main.js') + link(rel='stylesheet', media='all and (max-device-width: 480px)', href='doc/site/iphone.css') + link(rel='stylesheet', media='all and (min-device-width: 481px) and (max-device-width: 1024px)', href='doc/site/iphone.css') + link(href='#{dirPrefix}resources/ace/skeleton/images/favicon.ico', rel='icon', type='image/x-icon') + + link(rel="stylesheet", href="#{dirPrefix}resources/csses/bootstrap.min.css") + link(href='#{sitePrefix}/style.css', rel='stylesheet', type='text/css') + link(rel="stylesheet", href="#{dirPrefix}resources/csses/ace_api.css") + link(rel="stylesheet", href="#{dirPrefix}resources/csses/font-awesome.css") + + link(href="#{dirPrefix}resources/images/favicon.ico", rel="icon", type="image/x-icon") + + script(src='#{dirPrefix}resources/javascripts/bbq.js') + script(src="#{dirPrefix}resources/javascripts/jquery.collapse.js") + script(src="#{dirPrefix}resources/javascripts/jquery.cookie.js") + script(src="#{dirPrefix}resources/javascripts/bootstrap-dropdown.js") + script(src='#{dirPrefix}resources/javascripts/bootstrap-tab.js') + + +mixin endingScripts + script(defer, src="#{dirPrefix}resources/javascripts/ux.js") + script(src="#{dirPrefix}resources/javascripts/clicker.js") + script(src="#{dirPrefix}resources/javascripts/jquery-scrollspy.js") + script(defer, src="#{dirPrefix}resources/javascripts/disqus-ext.js") + script(defer, src="#{dirPrefix}resources/javascripts/ga.js") + +mixin identifyBuild(tree, type) + landingPage = 'true' + -dirPrefix = './' + +mixin markdown(text, inline) + != markdown(text, inline) \ No newline at end of file diff --git a/doc/resources/ace/templates/layout.jade b/doc/resources/ace/templates/layout.jade index 705f686c..da6c2226 100644 --- a/doc/resources/ace/templates/layout.jade +++ b/doc/resources/ace/templates/layout.jade @@ -1,49 +1,12 @@ include ../../common_layout include lib -mixin doctype +#documentation.span8 + -if (isIndex) + != content + -else + mixin api() -html(xmlns="http://www.w3.org/1999/xhtml") - head - mixin head - - body - #wrapper - .content - .column2 - #top_container.collapse - h1 The high performance code editor for the web. - #page_logo - img(src='doc/site/images/logo.png') - div(style='clear: both;') - ul#tabnav.nav.nav-pills - li - a(href='/') - img(src='.//resources/images/ace_logo_menu.png') - li - a(href='../index.html#nav=about', data-toggle='tab') About - li - a(href='../index.html#nav=embedding', data-toggle='tab') Embedding Guide - li - a(href='../index.html#nav=howto', data-toggle='tab') How-To Guide - li.active - a(href='index.html') API Reference - li - a(href='../index.html#nav=production', data-toggle='tab') ACE in Production - li - a(href='../index.html#nav=support', data-toggle='tab') Support - .tab-content - .row.centerpiece - .span3#sidebarContainer - #sidebar - include ace_menu.jade - .span9#mainContent - #documentation - -if (isIndex) - != content - -else - mixin api() - - div(id="disqus_thread") - - mixin endingScripts \ No newline at end of file + mixin endingScripts + + div(id="disqus_thread") \ No newline at end of file diff --git a/doc/resources/ace/templates/lib.jade b/doc/resources/ace/templates/lib.jade index ed5f9f6e..c59bb5a0 100644 --- a/doc/resources/ace/templates/lib.jade +++ b/doc/resources/ace/templates/lib.jade @@ -125,7 +125,7 @@ mixin article(obj, parents) li span.label.related-to | Related to: - != link(obj.related_to) + obj.related_to div.sideToggler @@ -231,11 +231,14 @@ mixin render_starting_tabs(obj, pos) b.caret ul.dropdown-menu for m in members - li(data-id='#{m.path}', class='memberLink') + li(id='dropdown_#{m.path}', data-id='#{m.path}', class='memberLink') mixin link(m, [], true) -methodSection = constructorSection = propertySection = eventSection = false; mixin article(obj, []) +mixin rewriteLink(text) + != text.replace('a', 'bbbb') + mixin short_description_list(collection) ul.method-details-list for obj in collection diff --git a/doc/site/images/cloud9-logo.png b/doc/site/images/cloud9-logo.png new file mode 100644 index 00000000..5466cf7e Binary files /dev/null and b/doc/site/images/cloud9-logo.png differ diff --git a/doc/site/images/codecademy-logo.png b/doc/site/images/codecademy-logo.png new file mode 100644 index 00000000..e27947ae Binary files /dev/null and b/doc/site/images/codecademy-logo.png differ diff --git a/doc/site/images/empty-logo.png b/doc/site/images/empty-logo.png new file mode 100644 index 00000000..c0bbbbe3 Binary files /dev/null and b/doc/site/images/empty-logo.png differ diff --git a/doc/site/images/firefox-logo.png b/doc/site/images/firefox-logo.png new file mode 100644 index 00000000..711fad62 Binary files /dev/null and b/doc/site/images/firefox-logo.png differ diff --git a/doc/site/images/github-logo.png b/doc/site/images/github-logo.png new file mode 100644 index 00000000..9456846a Binary files /dev/null and b/doc/site/images/github-logo.png differ diff --git a/doc/site/images/khan-logo.png b/doc/site/images/khan-logo.png new file mode 100644 index 00000000..3c389f8e Binary files /dev/null and b/doc/site/images/khan-logo.png differ diff --git a/doc/site/images/rstudio_logo_64.png b/doc/site/images/rstudio_logo_64.png new file mode 100644 index 00000000..3d402a21 Binary files /dev/null and b/doc/site/images/rstudio_logo_64.png differ diff --git a/doc/site/js/main.js b/doc/site/js/main.js index 268dc36d..e4f78ffc 100644 --- a/doc/site/js/main.js +++ b/doc/site/js/main.js @@ -1,12 +1,13 @@ var editor; +var embedded_editor; $(function() { - this.isApi = location.href.indexOf("/api") >= 0; - if (!this.isApi) { - hljs.initHighlighting(); - editor = ace.edit("ace_editor_demo"); - var javascriptMode = require("ace/mode/javascript").Mode; - editor.getSession().setMode(new javascriptMode()); - } + hljs.initHighlighting(); + editor = ace.edit("ace_editor_demo"); + embedded_editor = ace.edit("embedded_ace_code"); + var javascriptMode = require("ace/mode/javascript").Mode; + var htmlMode = require("ace/mode/html").Mode; + editor.getSession().setMode(new javascriptMode()); + embedded_editor.getSession().setMode(new htmlMode()); $("ul.menu-list li").click(function(e) { if (e.target.tagName === "LI") { @@ -18,21 +19,67 @@ $(function() { window.location = anchor.attr("href"); } }); + + // used when page is access directly + function magicClickInterceptor(e) { + e.preventDefault(); + + var state = {}; + state.api = $(this).attr("href").substring(6, $(this).attr("href").length - 5); + $.bbq.pushState(state); + + $("#apiHolder").removeClass("apiIntro").removeClass("span8"); + $("#apiHolder").load($(this).attr("href") + " #documentation", function(){ + ux(); + setupClicker(); + + // handles dropping in from new link + var section = $.bbq.getState("section"); + if (section) { + $("li#dropdown_" + section.replace(/\./g, '\\.') + " a").triggerHandler('click'); + } + + setupDisqus(); + }); + } + + $('.menu-item a').click(magicClickInterceptor); + $('a.argument').click(function (e) { + e.preventDefault(); + + var state = {}; + state.api = $(this).attr("href").substring(6, $(this).attr("href").length - 5); + $.bbq.pushState(state); + + $("#apiHolder").load($(this).attr("href") + " #documentation", function(){ + $("#apiHolder").removeClass("apiIntro").removeClass("span8"); + ux(); + setupClicker(); + + // handles dropping in from new link + var section = $.bbq.getState("section"); + if (section) { + $("li#dropdown_" + section.replace(/\./g, '\\.') + " a").triggerHandler('click'); + } + + setupDisqus(); + }); + }); + var tabs = $("#tabnav"), tab_a_selector = "a"; var firstLoad = true; - var _self = this; - tabs.find(tab_a_selector).click(function(e) { - if (_self.isApi || $(this).attr("href").indexOf("/api/") >= 0) { - window.location = $(this).attr("href"); - } - + + tabs.find(tab_a_selector).click(function(e) { e.preventDefault(); + embedded_editor.resize(); + editor.resize(); if ($(this).attr("href") === "/") return; - if ($(this).attr("href") === "#api") { + if ($(this).attr("href").indexOf("#api") === 0) { $("#top_container").addClass("collapse"); + scrollIntoPosition(null, 0); } else if ($(this).is(":visible")) { if (firstLoad) { @@ -48,28 +95,36 @@ $(function() { } } - function scrollIntoPosition(el) { - if ($("body").scrollTop() > 345) { + function scrollIntoPosition(el, overridePosition) { + if (typeof overridePosition !== "undefined") { + $("body").stop().animate({ + scrollTop: overridePosition + }, 400); + } + else if ($("body").scrollTop() > 345) { $("body").stop().animate({ scrollTop: ($(el).offset().top - 15) }, 400); } } - - + $(this).tab("show"); var state = {}; - state["nav"] = $(this).attr("href").substr(1); + state.nav = $(this).attr("href").substr(1); $.bbq.pushState(state); }); - if (!this.isApi) { - $(window).on("hashchange", function(e) { - tabs.each(function() { - var idx = $.bbq.getState("nav") || "about"; - $(this).find(tab_a_selector + "[href='#" + idx + "']").triggerHandler('click'); - }); - }).trigger("hashchange"); - } + $(window).on("hashchange", function(e) { + tabs.each(function() { + var idx = $.bbq.getState("nav") || "about"; + $(this).find(tab_a_selector + "[href='#" + idx + "']").triggerHandler('click'); + + // handles dropping in from new link + var api = $.bbq.getState("api"); + if (api) { + $(tab_a_selector + "[href='./api/" + api + ".html']").triggerHandler('click'); + } + }); + }).trigger("hashchange"); }); \ No newline at end of file diff --git a/doc/site/style.css b/doc/site/style.css index 30e389c7..40118ed5 100644 --- a/doc/site/style.css +++ b/doc/site/style.css @@ -5,15 +5,16 @@ body { font-family: Helvetica, Arial; } -#ace_editor_wrapper { +.ace_editor_wrapper { height: 275px; position: relative; border: 1px solid #DDD; - border-radius: 5px; + border-radius: 4px; + border-bottom-right-radius: 0px; margin-top: 5px; } -#ace_editor_demo { +#ace_editor_demo, #embedded_ace_code { left: 0px; top: 0px; bottom: 1px; @@ -272,17 +273,17 @@ UL.menu-list LI a:hover { li#add_your_site p { font-size: 32px; - border: 3px solid rgb(52, 160, 52); - color: rgb(52, 160, 52); + border: 3px solid #34A034; + color: #34A034; border-radius: 34px; - padding: 4px 4px 4px 7px; - width: 22px; + padding: 3px 4px 4px 6px; + width: 20px; height: 22px; line-height: 18px; position: relative; - left: 31px; - top: 20px; - background: rgba(255, 255, 255, 1); + left: 33px; + top: 22px; + background: #fff; } ul.menu-list li#add_your_site a { @@ -424,15 +425,22 @@ pre .xml .javascript, pre .xml .css { #embed_link { text-align: right; + padding-top: 0; } #embed_link a { color: #059C05; font-weight: 100; font-family: helvetica; - text-transform: uppercase; font-size: 13px; display: inline-block; padding: 2px 10px; + background: #f4f4f4; + border: 1px solid #ddd; + border-top: none; + border-bottom-left-radius: 4px; + border-bottom-right-radius: 4px; + text-shadow: 0px 1px 0px rgba(255, 255, 255, 1); + text-decoration: none; } p.highlight_note { @@ -449,4 +457,9 @@ p.highlight_note { p.highlight_note a { color: #537CC7; +} + +.apiIntro { + padding-left: 15px; + padding-bottom: 10px; } \ No newline at end of file diff --git a/index.html b/index.html index 954061e3..90dceff1 100644 --- a/index.html +++ b/index.html @@ -5,14 +5,18 @@ ACE - The High Performance Code Editor for the Web - + + + - + + + @@ -46,7 +50,7 @@ How-To Guide
                                                                                                                                                                                                                • - API Reference + API Reference
                                                                                                                                                                                                                • ACE in Production @@ -64,45 +68,50 @@ in any web page and JavaScript application. ACE is maintained as the primary editor for Cloud9 IDE and is the successor of the Mozilla Skywriter (Bespin) project.

                                                                                                                                                                                                                  -
                                                                                                                                                                                                                  +
                                                                                                                                                                                                                  /** * In fact, you're looking at ACE right now. * * We are currently showing off the JavaScript mode. ACE has support for 45 * language modes and 24 color themes! */ - -var resultString = "Hello, ACE! The result of your math is: "; + function add(x, y) { + var resultString = "Hello, ACE! The result of your math is: "; var result = x + y; return resultString + result; } - + var addResult = add(3, 2); console.log(addResult);
                                                                                                                                                                                                                  - -

                                                                                                                                                                                                                  Looking for a more full-featured demo? The kitchen sink - demonstrates all ACE features.

                                                                                                                                                                                                                  + +

                                                                                                                                                                                                                  Looking for a more full-featured demo? Check out the + kitchen sink.

                                                                                                                                                                                                                  ACE Features

                                                                                                                                                                                                                    -
                                                                                                                                                                                                                  • Syntax highlighting
                                                                                                                                                                                                                  • -
                                                                                                                                                                                                                  • Auto indentation and outdent
                                                                                                                                                                                                                  • -
                                                                                                                                                                                                                  • An optional command line
                                                                                                                                                                                                                  • -
                                                                                                                                                                                                                  • Work with huge documents (1,000,000+ lines are no problem)
                                                                                                                                                                                                                  • -
                                                                                                                                                                                                                  • Fully customizable key bindings including VI and Emacs modes
                                                                                                                                                                                                                  • -
                                                                                                                                                                                                                  • Themes (TextMate themes can be imported)
                                                                                                                                                                                                                  • -
                                                                                                                                                                                                                  • Search and replace with regular expressions
                                                                                                                                                                                                                  • -
                                                                                                                                                                                                                  • Highlight matching parentheses
                                                                                                                                                                                                                  • -
                                                                                                                                                                                                                  • Toggle between soft tabs and real tabs
                                                                                                                                                                                                                  • -
                                                                                                                                                                                                                  • Displays hidden characters
                                                                                                                                                                                                                  • -
                                                                                                                                                                                                                  • Highlight selected word
                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                  • Syntax highlighting for over 40 languages (TextMate/Sublime/.tmlanguage files can be imported)
                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                  • Over 20 themes (TextMate/Sublime/.tmtheme files can be imported)
                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                  • Automatic indent and outdent
                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                  • An optional command line
                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                  • Handles huge documents (at last check, 4,000,000 lines is the upper limit)
                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                  • Fully customizable key bindings including vim and Emacs modes
                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                  • Search and replace with regular expressions
                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                  • Highlight matching parentheses
                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                  • Toggle between soft tabs and real tabs
                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                  • Displays hidden characters
                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                  • Drag and drop text using the mouse
                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                  • Line wrapping
                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                  • Code folding
                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                  • Multiple cursors and selections
                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                  • Live syntax checker (currently JavaScript/CoffeeScript/CSS/XQuery)
                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                  • Cut, copy, and paste functionality
                                                                                                                                                                                                                  -

                                                                                                                                                                                                                  Getting the code

                                                                                                                                                                                                                  +

                                                                                                                                                                                                                  Get the Open-Source Code

                                                                                                                                                                                                                  ACE is a community project. We actively encourage and support contributions! The ACE source code is hosted on GitHub and released under the BSD license ‐ - very simple and friendly to all kinds of projects, whether OSS + very simple and friendly to all kinds of projects, whether open-source or not. Take charge of your editor and add your favorite language highlighting and keybindings!

                                                                                                                                                                                                                  git clone git://github.com/ajaxorg/ace.git
                                                                                                                                                                                                                  @@ -111,7 +120,7 @@ console.log(addResult);
                                                                                                                                                                                                                  as two independent projects both aiming to build a no compromise code editor component for the web. Bespin started as part of Mozilla Labs and was based on the <canvas> tag, while ACE is - the Editor component of Cloud9 IDE + the editor component of Cloud9 IDE and uses the DOM for rendering. After the release of ACE at JSConf.eu 2010 in Berlin the Skywriter team decided to merge ACE with a simplified @@ -130,11 +139,10 @@ console.log(addResult);

                                                                                                                                                                                                                  Embedding ACE in Your Site

                                                                                                                                                                                                                  -

                                                                                                                                                                                                                  ACE can be easily embedded into a web page. After you - test the code below, check out the How-To Guide - for more instructions.

                                                                                                                                                                                                                  +

                                                                                                                                                                                                                  ACE can be easily embedded into a web page:

                                                                                                                                                                                                                  -
                                                                                                                                                                                                                  <!DOCTYPE html>
                                                                                                                                                                                                                  +                            
                                                                                                                                                                                                                  +
                                                                                                                                                                                                                  <!DOCTYPE html> <html lang="en"> <head> <title>ACE in Action</title> @@ -162,7 +170,7 @@ console.log(addResult);
                                                                                                                                                                                                                  editor.getSession().setMode("ace/mode/javascript"); </script> </body> -</html>
                                                                                                                                                                                                                  +</html>

                                                                                                                                                                                                                  Now check out the How-To Guide for instructions on common operations, such as setting a different language mode or getting the contents from the editor.

                                                                                                                                                                                                                  @@ -174,16 +182,17 @@ console.log(addResult);
                                                                                                                                                                                                                  var ace = require("lib/ace");
                                                                                                                                                                                                                  -

                                                                                                                                                                                                                  Nearly Everything you Want to do with ACE

                                                                                                                                                                                                                  -

                                                                                                                                                                                                                  In all of these cases ACE has been invoked exactly - as shown on the embedding guide.

                                                                                                                                                                                                                  +

                                                                                                                                                                                                                  Working with ACE

                                                                                                                                                                                                                  +

                                                                                                                                                                                                                  In all of these examples ACE has been invoked + as shown in the embedding guide.

                                                                                                                                                                                                                  Setting Themes

                                                                                                                                                                                                                  -

                                                                                                                                                                                                                  To change the theme, configure the editor to use the theme using its module name. The theme file will be loaded on demand:

                                                                                                                                                                                                                  +

                                                                                                                                                                                                                  Themes are loaded on demand; all you have to do is pass the string name:

                                                                                                                                                                                                                  editor.setTheme("ace/theme/twilight");
                                                                                                                                                                                                                  +

                                                                                                                                                                                                                  > (See all themes)

                                                                                                                                                                                                                  Setting the Programming Language Mode

                                                                                                                                                                                                                  -

                                                                                                                                                                                                                  By default, the editor supports plain text mode. All other language modes are available as separate modules. Modes are also loaded on demand like this:

                                                                                                                                                                                                                  +

                                                                                                                                                                                                                  By default, the editor supports plain text mode. All other language modes are available as separate modules, loaded on demand like this:

                                                                                                                                                                                                                  <script src="src/mode-javascript.js" type="text/javascript" charset="utf-8">

                                                                                                                                                                                                                  The mode can then be used like this:

                                                                                                                                                                                                                  @@ -262,9 +271,17 @@ editor.getValue(); // or session.getValue
                                                                                                                                                                                                                  editor.resize()
                                                                                                                                                                                                                  -

                                                                                                                                                                                                                  Searching in Code

                                                                                                                                                                                                                  - -

                                                                                                                                                                                                                  The main ACE search functionality is defined in search.js. The following options are available to you for your search parameters:

                                                                                                                                                                                                                  +

                                                                                                                                                                                                                  Searching

                                                                                                                                                                                                                  +
                                                                                                                                                                                                                  editor.find('needle',{
                                                                                                                                                                                                                  +    backwards: false,
                                                                                                                                                                                                                  +    wrap: false,
                                                                                                                                                                                                                  +    caseSensitive: false,
                                                                                                                                                                                                                  +    wholeWord: false,
                                                                                                                                                                                                                  +    regExp: false
                                                                                                                                                                                                                  +});
                                                                                                                                                                                                                  +editor.findNext();
                                                                                                                                                                                                                  +editor.findPrevious();
                                                                                                                                                                                                                  +

                                                                                                                                                                                                                  The following options are available to you for your search parameters:

                                                                                                                                                                                                                  • @@ -285,17 +302,7 @@ editor.getValue(); // or session.getValue 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.
                                                                                                                                                                                                                  • -

                                                                                                                                                                                                                  Here's an example of how you can set up search on the editor object:

                                                                                                                                                                                                                  - -
                                                                                                                                                                                                                  editor.find('needle',{
                                                                                                                                                                                                                  -    backwards: false,
                                                                                                                                                                                                                  -    wrap: false,
                                                                                                                                                                                                                  -    caseSensitive: false,
                                                                                                                                                                                                                  -    wholeWord: false,
                                                                                                                                                                                                                  -    regExp: false
                                                                                                                                                                                                                  -});
                                                                                                                                                                                                                  -editor.findNext();
                                                                                                                                                                                                                  -editor.findPrevious();
                                                                                                                                                                                                                  +

                                                                                                                                                                                                                  Here's how you can perform a replace:

                                                                                                                                                                                                                  @@ -337,10 +344,95 @@ editor.replace('bar'); //... } }); +

                                                                                                                                                                                                                  Importing Themes and Languages

                                                                                                                                                                                                                  +

                                                                                                                                                                                                                  ACE supports the importing of .tmtheme and .tmlanguage files for use +in the editor. The task is accomplished by two simple node scripts.

                                                                                                                                                                                                                  + +

                                                                                                                                                                                                                  Importing Textmate/Sublime Themes

                                                                                                                                                                                                                  +

                                                                                                                                                                                                                  To import a .tmtheme file into ACE:

                                                                                                                                                                                                                  +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                  1. Go to the tool folder, and run npm install to install required +dependencies.
                                                                                                                                                                                                                  2. +
                                                                                                                                                                                                                  3. Drop your .tmtheme file into the tmthemes folder.
                                                                                                                                                                                                                  4. +
                                                                                                                                                                                                                  5. Update the tmtheme.js file to include your new theme.
                                                                                                                                                                                                                  6. +
                                                                                                                                                                                                                  7. Run node tmtheme.js +
                                                                                                                                                                                                                  8. +

                                                                                                                                                                                                                  Your .tmtheme will be converted and placed into lib/ace/theme +alongside other themes. Note that there’s one more class we’ve added +that isn’t available in regular Textmate themes, and that’s for +.ace_indent-guide. This class adds indentation guides for your theme, +using a base64-encoded png. In general, the dark themes and light themes +each have their own strings, so you can just copy the class from an +equivalent theme.

                                                                                                                                                                                                                  + +

                                                                                                                                                                                                                  Importing Textmate/Sublime Languages

                                                                                                                                                                                                                  + +

                                                                                                                                                                                                                  If you’re interested in porting over an existing .tmlanguage file into +Ace’s mode syntax highlighting, there’s a tool to accomplish that, too.

                                                                                                                                                                                                                  + +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                  1. Go to the tool folder. Run npm install to install required +dependencies.
                                                                                                                                                                                                                  2. +
                                                                                                                                                                                                                  3. Drop your .tmlanguage file into the tools folder.
                                                                                                                                                                                                                  4. +
                                                                                                                                                                                                                  5. Run node tmlanguage.js <path_to_tmlanguage_file>, such as +node tmlanguage.js MyGreatLanguage.tmlanguage.
                                                                                                                                                                                                                  6. +

                                                                                                                                                                                                                  Your .tmlanguage file will be converted to the best of the converter’s +ability. It is an understatement to say that the tool is imperfect. +Probably, this will never be able to be fully autogenerated. In +.tmlanguage files, for instance, one sees the use of +lookbehinds/negative lookbehinds, which JavaScript regexps simply do not +have. There’s a list of other non-determinable items, too:

                                                                                                                                                                                                                  + +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                  • Deciding which state to transition to
                                                                                                                                                                                                                    + While the tool does create new states correctly, it labels them +with generic terms like state_2, state_10 e.t.c. +
                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                  • Extending modes
                                                                                                                                                                                                                    + Many modes say something like include source.c, to mean, “add all +the rules in C highlighting.” That syntax does not make sense to Ace +or this tool
                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                  • Rule preference order
                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                  • Gathering keywords
                                                                                                                                                                                                                    + Most likely, you’ll need to take keywords from your language file +and run them through createKeywordMapper() +
                                                                                                                                                                                                                  • +

                                                                                                                                                                                                                  Two files are created and placed in lib/ace/mode: one for the language +mode, and one for the set of highlight rules. You will still need to add +the code into kitchen_sink.html and demo.js, as well as write any +tests for the highlighting.

                                                                                                                                                                                                                  -

                                                                                                                                                                                                                  API Reference

                                                                                                                                                                                                                  -

                                                                                                                                                                                                                  ACE is awesome.

                                                                                                                                                                                                                  +
                                                                                                                                                                                                                  + +
                                                                                                                                                                                                                  +

                                                                                                                                                                                                                  Ace API Reference

                                                                                                                                                                                                                  +

                                                                                                                                                                                                                  Welcome to the Ace API Reference Guide. Ace is a standalone code editor written in JavaScript that you can embed onto any website. We're used in a bunch of places already, like GitHub, Google, and Facebook.

                                                                                                                                                                                                                  +

                                                                                                                                                                                                                  On the left, you'll find a list of all of our currently documented classes. There are plenty more to do, but these represent the "core" set. For more information on how to work with Ace, check out the embedding guide.

                                                                                                                                                                                                                  +
                                                                                                                                                                                                                  +

                                                                                                                                                                                                                  Projects Using ACE

                                                                                                                                                                                                                  @@ -453,6 +545,10 @@ editor.replace('bar');
                                                                                                                                                                                                                  + + + +