The main class required to set up an Ace instance in the browser.
- -The main class required to set up an Ace instance in the browser.
- -Creates a new EditSession, and returns the associated Document.
Creates a new EditSession, and returns the associated Document.
| text | Document | String | Required. If |
| mode | TextMode | Required. The inital language mode to use for the document - |
Embeds the Ace editor into the DOM, at the element provided by el.
Embeds the Ace editor into the DOM, at the element provided by el.
| el | String | DOMElement | Required. Either the id of an element, or the element itself - |
Defines the floating pointer in the document. Whenever text is inserted or deleted before the cursor, the position of the cursor is updated.
- -Fires whenever the anchor position changes.
- -Fires whenever the anchor position changes.
-Both of these objects have a row and column property corresponding to the position.
Events that can trigger this function include setPosition().
| e | Object | Required. An object containing information about the anchor position. It has two properties: -
|
When called, the 'change' event listener is removed.
When called, the 'change' event listener is removed.
Returns the current document.
- -Returns the current document.
- -Returns an object identifying the row and column position of the current anchor.
Returns an object identifying the row and column position of the current anchor.
Sets the anchor position to the specified row and column. If noClip is true, the position is not clipped.
Sets the anchor position to the specified row and column. If noClip is true, the position is not clipped.
| row | Number | Required. The row index to move the anchor to - |
| column | Number | Required. The column index to move the anchor to - |
| noClip | Boolean | Required. Identifies if you want the position to be clipped - |
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.
- -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.
- -| e | Object | Required. An object containing two properties, |
Emits the 'update' event. firstRow and lastRow are used to define the boundaries of the region to be updated.
Stops tokenizing.
- -Stops tokenizing.
- -new CommandManager(platform, commands)
- -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.
Fires whenever the document changes.
- -Fires whenever the document changes.
-Several methods trigger different "change" events. Below is a list of each action type, followed by each property that's also available:
"insertLines" (emitted by Document.insertLines())range: the Range of the change within the documentlines: the lines in the document that are changing"insertText" (emitted by Document.insertNewLine())range: the Range of the change within the documenttext: the text that's being added"removeLines" (emitted by Document.insertLines())range: the Range of the change within the documentlines: the lines in the document that were removednl: the new line character (as defined by Document.getNewLineCharacter())"removeText" (emitted by Document.removeInLine() and Document.removeNewLine())range: the Range of the change within the documenttext: the text that's being removed| e | Object | Required. Contains at least one property called |
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'.
| deltas | Object | Required. - |
Returns all lines in the document as string array.
- -Returns all lines in the document as string array. Warning: The caller should not modify this array!
- -Returns the number of rows in the document.
- -Returns the number of rows in the document.
- -Returns an array of strings of the rows between firstRow and lastRow. This function is inclusive of lastRow.
Returns the newline character that's being used, depending on the value of newLineMode.
Returns the newline character that's being used, depending on the value of newLineMode.
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.
- -| range | Range | 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.
- -Converts an index position in a document to a {row, column} object.
Converts an index position in a document to a {row, column} object.
Index refers to the "absolute position" of a character in the document. For example:
-var x = 0; // 10 characters, plus one for newline
-var y = -1;
-Here, y is an index 15: 11 characters for the first row, and 5 characters until y in the second.
| index | Number | Required. An index to convert - |
| startRow | Number | Required. =0 The row from which to start the conversion - |
Inserts text into the position at the current row. This method also triggers the 'change' event.
Inserts the elements in lines into the document, starting at the row index given by row. This method also triggers the 'change' event.
Inserts a new line into the document at the current row's position. This method also triggers the 'change' event.
Inserts a new line into the document at the current row's position. This method also triggers the 'change' event.
| position | Object | Required. The position to insert at - |
Converts the {row, column} position in a document to the character's index.
Converts the {row, column} position in a document to the character's index.
Index refers to the "absolute position" of a character in the document. For example:
-var x = 0; // 10 characters, plus one for newline
-var y = -1;
-Here, y is an index 15: 11 characters for the first row, and 5 characters until y in the second.
| pos | Object | Required. The |
| startRow | Number | Required. =0 The row from which to start the conversion - |
Removes the specified columns from the row. 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.
Removes the new line between row and the row immediately following it. This method also triggers the 'change' event.
| row | Number | Required. The row to check - |
Reverts any changes previously applied. These can be either 'includeText', 'insertLines', 'removeText', and 'removeLines'.
Reverts any changes previously applied. These can be either 'includeText', 'insertLines', 'removeText', and 'removeLines'.
| deltas | Object | Required. - |
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.
| text | Document | String | Required. If |
| mode | TextMode | Required. The inital language mode to use for the document - |
Emitted when an annotation changes, like through EditSession.setAnnotations().
Emitted when an annotation changes, like through EditSession.setAnnotations().
Emitted when a back marker changes.
- -Emitted when a back marker changes.
- -Emitted when the gutter changes, either by setting or removing breakpoints, or when the gutter decorations change.
- -Emitted when the gutter changes, either by setting or removing breakpoints, or when the gutter decorations change.
- -Emitted when a code fold is added or removed.
- -Emitted when a code fold is added or removed.
- -Emitted when a front marker changes.
- -Emitted when a front marker changes.
- -Emitted when the current mode changes.
- -Emitted when the current mode changes.
- -Emitted when the ability to overwrite text changes, via EditSession.setOverwrite().
Emitted when the ability to overwrite text changes, via EditSession.setOverwrite().
Emitted when the tab size changes, via EditSession.setTabSize().
Emitted when the tab size changes, via EditSession.setTabSize().
Emitted when the wrapping limit changes.
- -Emitted when the wrapping limit changes.
- -Emitted when the wrap mode changes.
- -Emitted when the wrap mode changes.
- -Emitted when a background tokenizer asynchronously processes new rows.
- -Emitted when a background tokenizer asynchronously processes new rows.
- -| e | Object | Required. An object containing one property, |
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.
| range | Range | Required. Define the range of the marker - |
| clazz | String | Required. Set the CSS class for the marker - |
| type | Function | String | Required. Identify the type of the marker - |
| inFront | Boolean | Required. Set to |
Clears all the annotations for this session. This function also triggers the 'changeAnnotation' event.
Clears all the annotations for this session. This function also triggers the 'changeAnnotation' event.
Removes a breakpoint on the row number given by rows. This function also emites the 'changeBreakpoint' event.
Removes a breakpoint on the row number given by rows. This function also emites the 'changeBreakpoint' event.
| row | Number | Required. A row index - |
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.
Converts document coordinates to screen coordinates. This takes into account code folding, word wrap, tab size, and any other visual modifications.
- -Returns the annotations for the EditSession.
Returns the annotations for the EditSession.
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 number of rows in the document.
- -Returns the number of rows in the document.
- -Returns an array of strings of the rows between firstRow and lastRow. This function is inclusive of lastRow.
Returns an array containing the IDs of all the markers, either front or back.
- -Returns an array containing the IDs of all the markers, either front or back.
- -| inFront | Boolean | Required. If |
Returns the current text mode.
- -Returns the current text mode.
- -Returns the current new line mode.
- -Returns the current new line mode.
- -Returns true if overwrites are enabled; false otherwise.
Returns true if overwrites are enabled; false otherwise.
Returns the position (on screen) for the last character in the provided screen row.
- -Returns the position (on screen) for the last character in the provided screen row.
- -| screenRow | Number | Required. The screen row to check - |
Returns the length of the screen.
- -Returns the length of the screen.
- -The distance to the next tab stop at the specified screen column.
- -The distance to the next tab stop at the specified screen column.
- -| screenColumn | Number | Required. The screen column to check - |
Returns the width of the screen.
- -Returns the width of the screen.
- -Returns the value of the distance between the left of the editor and the leftmost part of the visible content.
- -Returns the value of the distance between the left of the editor and the leftmost part of the visible content.
- -Returns the value of the distance between the top of the editor and the topmost part of the visible content.
- -Returns the value of the distance between the top of the editor and the topmost part of the visible content.
- -Returns the string of the current selection.
- -Returns the string of the current selection.
- -Returns the current tab size.
- -Returns the current tab size.
- -Returns the current value for tabs. If the user is using soft tabs, this will be a series of spaces (defined by getTabSize()); otherwise it's simply '\t'.
Returns the current value for tabs. If the user is using soft tabs, this will be a series of spaces (defined by getTabSize()); otherwise it's simply '\t'.
Given a range within the document, this function returns all the text within that range as a single string.
- -Given a range within the document, this function returns all the text within that range as a single string.
- -| range | Range | Required. The range to work with - |
Returns an object indicating the token at the current row. The object has two properties: index and start.
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.
- -| row | Number | Required. The row to start at - |
Returns the current undo manager.
- -Returns the current undo manager.
- -Returns true if soft tabs are being used, false otherwise.
Returns true if soft tabs are being used, false otherwise.
Returns true if workers are being used.
Returns true if workers are being used.
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.
Returns the value of wrap limit.
- -Returns the value of wrap limit.
- -Returns an object that defines the minimum and maximum of the wrap limit; it looks something like this:
- -Returns an object that defines the minimum and maximum of the wrap limit; it looks something like this:
-{ min: wrapLimitRange_min, max: wrapLimitRange_max }
- -Indents all the rows, from startRow to endRow (inclusive), by prefixing each row with the token in indentString.
Indents all the rows, from startRow to endRow (inclusive), by prefixing each row with the token in indentString.
If indentString contains the '\t' character, it's replaced by whatever is defined by getTabString().
| startRow | Number | Required. Starting row - |
| endRow | Number | Required. Ending row - |
| indentString | String | Required. The indent token - |
Shifts all the lines in the document down one, starting from firstRow and ending at lastRow.
Shifts all the lines in the document up one, starting from firstRow and ending at lastRow.
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 }
-
- 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 }
-
- | fromRange | Range | Required. The range of text you want moved within the document - |
| toPosition | Object | Required. The location (row and column) where you want to move the text to - |
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.
| e | Object | Required. - |
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.
| markerId | Number | Required. A number representing a marker - |
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.
- -| screenRow | Number | Required. The screen row to check - |
| screenColumn | Number | Required. The screen column to check - |
Sets annotations for the EditSession. This functions emits the 'changeAnnotation' event.
Sets annotations for the EditSession. This functions emits the 'changeAnnotation' event.
| annotations | Array | Required. A list of annotations - |
Sets a breakpoint on the row number given by rows. This function also emites the 'changeBreakpoint' event.
Sets a breakpoint on 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.
| rows | Array | Required. An array of row indices - |
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.
| doc | Document | Required. The new |
Pass in true to enable overwrites in your session, or false to disable.
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.
| overwrite | Boolean | Required. Defines wheter or not to set overwrites - |
Sets the value of the distance between the left of the editor and the leftmost part of the visible content.
- -Sets the value of the distance between the left of the editor and the leftmost part of the visible content.
- -| scrollLeft | Object | Required. - |
This function sets the scroll top value. It also emits the 'changeScrollTop' event.
This function sets the scroll top value. It also emits the 'changeScrollTop' event.
| scrollTop | Number | Required. The new scroll top value - |
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.
| tabSize | Number | Required. The new tab size - |
Sets the undo manager.
- -Enables or disables highlighting of the range where an undo occured.
- -Enables or disables highlighting of the range where an undo occured.
- -| enable | Boolean | Required. If |
Pass true to enable the use of soft tabs. Soft tabs means you're using spaces instead of the tab character ('\t').
Pass true to enable the use of soft tabs. Soft tabs means you're using spaces instead of the tab character ('\t').
| useSoftTabs | Boolean | Required. Value indicating whether or not to use soft tabs - |
Sets whether or not line wrapping is enabled. If useWrapMode is different than the current value, the 'changeWrapMode' event is emitted.
Sets whether or not line wrapping is enabled. If useWrapMode is different than the current value, the 'changeWrapMode' event is emitted.
| useWrapMode | Boolean | Required. Enable (or disable) wrap mode - |
Sets the boundaries of wrap. Either value can be null to have an unconstrained wrap, or, they can be the same number to pin the limit. If the wrap limits for min or max are different, this method also emits the 'changeWrapMode' event.
Sets the boundaries of wrap. Either value can be null to have an unconstrained wrap, or, they can be the same number to pin the limit. If the wrap limits for min or max are different, this method also emits the 'changeWrapMode' event.
| min | Number | Required. The minimum wrap value (the left side wrap) - |
| max | Number | Required. The maximum wrap value (the right side wrap) - |
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.
- -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.
Creates a new Editor object.
Creates a new Editor object.
| renderer | VirtualRenderer | Required. Associated |
| session | EditSession | Required. The |
Emitted once the editor has been blurred.
- -Emitted once the editor has been blurred.
- -Emitted when the selection style changes, via Editor.setSelectionStyle().
Emitted when the selection style changes, via Editor.setSelectionStyle().
| data | Object | Required. Contains one property, |
Emitted whenever the EditSession changes.
Emitted whenever the EditSession changes.
| e | Object | Required. An object with two properties, |
Emitted once the editor comes into focus.
- -Emitted once the editor comes into focus.
- -Emitted when text is pasted.
- -Emitted when text is pasted.
- -| e | Object | Required. An object which contains one property, |
Aligns the cursors or selected text.
- -Aligns the cursors or selected text.
- -Outdents the current line.
- -Outdents the current line.
- -Blurs the current textInput.
Blurs the current textInput.
Attempts to center the current selection on the screen.
- -Attempts to center the current selection on the screen.
- -Empties the selection (by de-selecting it). This function also emits the 'changeSelection' event.
Empties the selection (by de-selecting it). This function also emits the 'changeSelection' event.
Copies all the selected lines down one row.
- -Copies all the selected lines down one row.
- -Copies all the selected lines up one row.
- -Copies all the selected lines up one row.
- -Cleans up the entire editor.
- -Cleans up the entire editor.
- -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.
Performs another search for needle in the document. For more information on options, see Search.
Brings the current textInput into focus.
Brings the current textInput into focus.
Returns true if the behaviors are currently enabled. "Behaviors" in this case is the auto-pairing of special characters, like quotation marks, parenthesis, or brackets.
Returns true if the behaviors are currently enabled. "Behaviors" in this case is the auto-pairing of special characters, like quotation marks, parenthesis, or brackets.
Returns the string of text currently highlighted.
- -Returns the string of text currently highlighted.
- -Gets the current position of the cursor.
- -Gets the current position of the cursor.
- -Returns the screen position of the cursor.
- -Returns the screen position of the cursor.
- -Returns the current mouse drag delay.
- -Returns the current mouse drag delay.
- -Returns the index of the first visible row.
- -Returns the index of the first visible row.
- -Returns true if current lines are always highlighted.
Returns true if current lines are always highlighted.
Returns true if currently highlighted words are to be highlighted.
Returns true if currently highlighted words are to be highlighted.
Returns the keyboard handler, such as "vim" or "windows".
- -Returns the keyboard handler, such as "vim" or "windows".
- -Returns the index of the last visible row.
- -Returns the index of the last visible row.
- -Works like EditSession.getTokenAt(), except it returns a number.
Works like EditSession.getTokenAt(), except it returns a number.
| row | Object | Required. - |
| column | Object | Required. - |
Returns true if overwrites are enabled; false otherwise.
Returns true if overwrites are enabled; false otherwise.
Returns the column number of where the print margin is.
- -Returns the column number of where the print margin is.
- -Returns true if the editor is set to read-only mode.
Returns true if the editor is set to read-only mode.
Returns the value indicating how fast the mouse scroll speed is (in milliseconds).
- -Returns the value indicating how fast the mouse scroll speed is (in milliseconds).
- -Returns the currently highlighted selection.
- -Returns the currently highlighted selection.
- -Returns the current selection style.
- -Returns the current selection style.
- -Returns the current session being used.
- -Returns the current session being used.
- -Returns true if the fold widgets are shown.
Returns true if the fold widgets are shown.
Returns true if invisible characters are being shown.
Returns true if invisible characters are being shown.
Returns true if the print margin is being shown.
Returns true if the print margin is being shown.
Returns the path of the current theme.
- -Returns the path of the current theme.
- -Returns the current session's content.
- -Returns the current session's content.
- -Returns true if the wrapping behaviors are currently enabled.
Returns true if the wrapping behaviors are currently enabled.
Moves the cursor to the specified line number, and also into the indiciated column.
- -Shifts the document to wherever "page down" is, as well as moving the cursor position.
- -Shifts the document to wherever "page down" is, as well as moving the cursor position.
- -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.
- -Indents the current line.
- -Indents the current line.
- -Returns true if the current textInput is in focus.
Returns true if the current textInput is in focus.
If the character before the cursor is a number, this functions changes its value by amount.
If the character before the cursor is a number, this functions changes its value by amount.
| amount | Number | Required. The value to change the numeral by (can be negative to decrease value) - |
Moves the cursor to the specified row and column. Note that this does not de-select the current selection.
- -Shifts all the selected lines down one row.
- -Shifts all the selected lines down one row.
- -Shifts all the selected lines up one row.
- -Shifts all the selected lines up one row.
- -Moves the cursor to the end of the current file. Note that this does de-select the current selection.
- -Moves the cursor to the start of the current file. Note that this does de-select the current selection.
- -Moves the cursor to the end of the current line. Note that this does de-select the current selection.
- -Moves the cursor to the start of the current line. Note that this does de-select the current selection.
- -Moves the cursor to the word immediately to the left of the current position. Note that this does de-select the current selection.
- -Moves the cursor to the word immediately to the right of the current position. Note that this does de-select the current selection.
- -Called whenever a text "copy" happens.
- -Called whenever a text "copy" happens.
- -Emitted when the selection changes.
- -Emitted when the selection changes.
- -Called whenever a text "cut" happens.
- -Called whenever a text "cut" happens.
- -Perform a redo operation on the document, reimplementing the last change.
- -Perform a redo operation on the document, reimplementing the last change.
- -Removes words of text from the editor. A "word" is defined as a string of characters bookended by whitespace.
- -Removes words of text from the editor. A "word" is defined as a string of characters bookended by whitespace.
- -| dir | String | Required. The direction of the deletion to occur, either "left" or "right" - |
Removes all the lines in the current selection
- -Removes all the lines in the current selection
- -Removes the selection marker.
- -Removes the selection marker.
- -| The | Range | Required. selection range added with |
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.
- -Removes all the words to the left of the current selection, until the start of the line.
- -Removes all the words to the left of the current selection, until the start of the line.
- -Removes the word directly to the left of the current selection.
- -Removes the word directly to the left of the current selection.
- -Removes the word directly to the right of the current selection.
- -Removes the word directly to the right of the current selection.
- -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.
- -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.
- -Scrolls to a line. If center is true, it puts the line in middle of screen (or attempts to).
Scrolls to a line. If center is true, it puts the line in middle of screen (or attempts to).
| line | Number | Required. The line to scroll to - |
| center | Boolean | Required. If |
| animate | Boolean | Required. If |
| callback | Function | Required. Function to be called when the animation has finished - |
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.
- -Selects the text from the current position of the document until where a "page down" finishes.
- -Selects the text from the current position of the document until where a "page down" finishes.
- -Selects the text from the current position of the document until where a "page up" finishes.
- -Selects the text from the current position of the document until where a "page up" finishes.
- -Specifies whether to use behaviors or not. "Behaviors" in this case is the auto-pairing of special characters, like quotation marks, parenthesis, or brackets.
- -Specifies whether to use behaviors or not. "Behaviors" in this case is the auto-pairing of special characters, like quotation marks, parenthesis, or brackets.
- -| enabled | Boolean | Required. Enables or disables behaviors - |
Determines whether or not the current line should be highlighted.
- -Determines whether or not the current line should be highlighted.
- -| shouldHighlight | Boolean | Required. Set to |
Determines if the currently selected word should be highlighted.
- -Determines if the currently selected word should be highlighted.
- -| shouldHighlight | Boolean | Required. Set 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.
| overwrite | Boolean | Required. Defines wheter or not to set overwrites - |
If readOnly is true, then the editor is set to read-only mode, and none of the content can change.
If readOnly is true, then the editor is set to read-only mode, and none of the content can change.
| readOnly | Boolean | Required. Specifies whether the editor can be modified or not - |
Indicates how selections should occur.
- -Indicates how selections should occur.
-By default, selections are set to "line". There are no other styles at the moment, -although this code change in the future.
-This function also emits the 'changeSelectionStyle' event.
| style | String | 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.
| session | EditSession | Required. The new session to use - |
If showInvisibles is set to true, invisible characters—like spaces or new lines—are show in the editor.
If showInvisibles is set to true, invisible characters—like spaces or new lines—are show in the editor.
| showInvisibles | Boolean | Required. Specifies whether or not to show invisible characters - |
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.
| showPrintMargin | Boolean | Required. Specifies whether or not to show the print margin - |
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.
| theme | String | Required. The path to a theme - |
Specifies whether to use wrapping behaviors or not, i.e. automatically wrapping the selection with characters such as brackets -when such a character is typed in.
- -Specifies whether to use wrapping behaviors or not, i.e. automatically wrapping the selection with characters such as brackets -when such a character is typed in.
- -| enabled | Boolean | Required. Enables or disables wrapping behaviors - |
Splits the line at the current selection (by inserting an '\n').
Splits the line at the current selection (by inserting an '\n').
Given the currently selected range, this function either comments all the lines, or uncomments all of them.
- -Given the currently selected range, this function either comments all the lines, or uncomments all of them.
- -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.
- -Converts the current selection entirely into lowercase.
- -Converts the current selection entirely into lowercase.
- -Converts the current selection entirely into uppercase.
- -Converts the current selection entirely into uppercase.
- -Transposes current line.
- -Transposes current line.
- -Perform an undo operation on the document, reverting the last change.
- -Perform an undo operation on the document, reverting the last change.
- -Updates the cursor and marker layers.
- -Updates the cursor and marker layers.
- -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.
- - - - - - - -PlaceHolder.cancel()
- -PlaceHolder.cancel()
-TODO
- -PlaceHolder.detach()
- -PlaceHolder.detach()
-TODO
- -PlaceHolder.hideOtherMarkers()
- -PlaceHolder.hideOtherMarkers()
-Hides all over markers in the EditSession that are not the currently selected one.
PlaceHolder.setup()
- -PlaceHolder.setup()
-TODO
- -PlaceHolder.showOtherMarkers()
- -PlaceHolder.showOtherMarkers()
-TODO
- -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.
- -Creates a new Range object with the given starting and ending row and column points.
Returns the part of the current Range that occurs within the boundaries of firstRow and lastRow as a new Range object.
Returns a duplicate of the calling range.
- -Returns a duplicate of the calling range.
- -Returns a range containing the starting and ending rows of the original range, but with a column value of 0.
Returns a range containing the starting and ending rows of the original range, but with a column value of 0.
Checks the row and column points 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.
| p | Range | Required. A point to compare with - |
Returns true if the row and column provided are within the given range. This can better be expressed as returning true if:
this.start.row <= row <= this.end.row &&
- this.start.column <= column <= this.end.column
-
- 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
-
- | row | Number | Required. A row to check for - |
| column | Number | 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.
| range | Range | Required. A range to compare with - |
Changes the row and column points for the calling range for both the starting and ending points.
- -Returns true if the caller's ending row point is the same as row, and if the caller's ending column is the same as column.
Returns true if and only if the starting row and column, and ending row and column, are equivalent to those given by range.
Returns true if and only if the starting row and column, and ending row and column, are equivalent to those given by range.
| range | Range | Required. A range to check against - |
Returns true if the range spans across multiple lines.
Returns true if the range spans across multiple lines.
Returns true if the caller's starting row point is the same as row, and if the caller's starting column is the same as column.
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.
| session | EditSession | Required. The |
Returns a string containing the range's row and column information, given like this:
- [start.row/start.column] -> [end.row/end.column]
-
- Returns a string containing the range's row and column information, given like this:
- [start.row/start.column] -> [end.row/end.column]
-
- Batches changes (that force something to be redrawn) in the background.
- -
-// elements on the page and add the "prettyprint" style. If at least one
-// prettyprint element was found, call the Google Prettify prettyPrint() API.
-//http://sstatic.net/so/js/master.js?v=6523
-function styleCode()
-{
- if (typeof disableStyleCode != "undefined")
- {
- return;
- }
-
- var a = false;
-
- $("pre code").parent().each(function()
- {
- if (!$(this).hasClass("prettyprint"))
- {
- $(this).addClass("prettyprint");
- a = true
- }
- });
-
- if (a) { prettyPrint() }
-}
\ No newline at end of file
diff --git a/api/resources/javascripts/prettify.js b/api/resources/javascripts/prettify.js
deleted file mode 100644
index eef5ad7e..00000000
--- a/api/resources/javascripts/prettify.js
+++ /dev/null
@@ -1,28 +0,0 @@
-var q=null;window.PR_SHOULD_USE_CONTINUATION=!0;
-(function(){function L(a){function m(a){var f=a.charCodeAt(0);if(f!==92)return f;var b=a.charAt(1);return(f=r[b])?f:"0"<=b&&b<="7"?parseInt(a.substring(1),8):b==="u"||b==="x"?parseInt(a.substring(2),16):a.charCodeAt(1)}function e(a){if(a<32)return(a<16?"\\x0":"\\x")+a.toString(16);a=String.fromCharCode(a);if(a==="\\"||a==="-"||a==="["||a==="]")a="\\"+a;return a}function h(a){for(var f=a.substring(1,a.length-1).match(/\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\[0-3][0-7]{0,2}|\\[0-7]{1,2}|\\[\S\s]|[^\\]/g),a=
-[],b=[],o=f[0]==="^",c=o?1:0,i=f.length;c122||(d<65||j>90||b.push([Math.max(65,j)|32,Math.min(d,90)|32]),d<97||j>122||b.push([Math.max(97,j)&-33,Math.min(d,122)&-33]))}}b.sort(function(a,f){return a[0]-f[0]||f[1]-a[1]});f=[];j=[NaN,NaN];for(c=0;ci[0]&&(i[1]+1>i[0]&&b.push("-"),b.push(e(i[1])));b.push("]");return b.join("")}function y(a){for(var f=a.source.match(/\[(?:[^\\\]]|\\[\S\s])*]|\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\\d+|\\[^\dux]|\(\?[!:=]|[()^]|[^()[\\^]+/g),b=f.length,d=[],c=0,i=0;c=2&&a==="["?f[c]=h(j):a!=="\\"&&(f[c]=j.replace(/[A-Za-z]/g,function(a){a=a.charCodeAt(0);return"["+String.fromCharCode(a&-33,a|32)+"]"}));return f.join("")}for(var t=0,s=!1,l=!1,p=0,d=a.length;p=5&&"lang-"===b.substring(0,5))&&!(o&&typeof o[1]==="string"))c=!1,b="src";c||(r[f]=b)}i=d;d+=f.length;if(c){c=o[1];var j=f.indexOf(c),k=j+c.length;o[2]&&(k=f.length-o[2].length,j=k-c.length);b=b.substring(5);B(l+i,f.substring(0,j),e,p);B(l+i+j,c,C(b,c),p);B(l+i+k,f.substring(k),e,p)}else p.push(l+i,b)}a.e=p}var h={},y;(function(){for(var e=a.concat(m),
-l=[],p={},d=0,g=e.length;d=0;)h[n.charAt(k)]=r;r=r[1];n=""+r;p.hasOwnProperty(n)||(l.push(r),p[n]=q)}l.push(/[\S\s]/);y=L(l)})();var t=m.length;return e}function u(a){var m=[],e=[];a.tripleQuotedStrings?m.push(["str",/^(?:'''(?:[^'\\]|\\[\S\s]|''?(?=[^']))*(?:'''|$)|"""(?:[^"\\]|\\[\S\s]|""?(?=[^"]))*(?:"""|$)|'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$))/,q,"'\""]):a.multiLineStrings?m.push(["str",/^(?:'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$)|`(?:[^\\`]|\\[\S\s])*(?:`|$))/,
-q,"'\"`"]):m.push(["str",/^(?:'(?:[^\n\r'\\]|\\.)*(?:'|$)|"(?:[^\n\r"\\]|\\.)*(?:"|$))/,q,"\"'"]);a.verbatimStrings&&e.push(["str",/^@"(?:[^"]|"")*(?:"|$)/,q]);var h=a.hashComments;h&&(a.cStyleComments?(h>1?m.push(["com",/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,q,"#"]):m.push(["com",/^#(?:(?:define|elif|else|endif|error|ifdef|include|ifndef|line|pragma|undef|warning)\b|[^\n\r]*)/,q,"#"]),e.push(["str",/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h|[a-z]\w*)>/,q])):m.push(["com",/^#[^\n\r]*/,
-q,"#"]));a.cStyleComments&&(e.push(["com",/^\/\/[^\n\r]*/,q]),e.push(["com",/^\/\*[\S\s]*?(?:\*\/|$)/,q]));a.regexLiterals&&e.push(["lang-regex",/^(?:^^\.?|[!+-]|!=|!==|#|%|%=|&|&&|&&=|&=|\(|\*|\*=|\+=|,|-=|->|\/|\/=|:|::|;|<|<<|<<=|<=|=|==|===|>|>=|>>|>>=|>>>|>>>=|[?@[^]|\^=|\^\^|\^\^=|{|\||\|=|\|\||\|\|=|~|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\s*(\/(?=[^*/])(?:[^/[\\]|\\[\S\s]|\[(?:[^\\\]]|\\[\S\s])*(?:]|$))+\/)/]);(h=a.types)&&e.push(["typ",h]);a=(""+a.keywords).replace(/^ | $/g,
-"");a.length&&e.push(["kwd",RegExp("^(?:"+a.replace(/[\s,]+/g,"|")+")\\b"),q]);m.push(["pln",/^\s+/,q," \r\n\t\xa0"]);e.push(["lit",/^@[$_a-z][\w$@]*/i,q],["typ",/^(?:[@_]?[A-Z]+[a-z][\w$@]*|\w+_t\b)/,q],["pln",/^[$_a-z][\w$@]*/i,q],["lit",/^(?:0x[\da-f]+|(?:\d(?:_\d+)*\d*(?:\.\d*)?|\.\d\+)(?:e[+-]?\d+)?)[a-z]*/i,q,"0123456789"],["pln",/^\\[\S\s]?/,q],["pun",/^.[^\s\w"-$'./@\\`]*/,q]);return x(m,e)}function D(a,m){function e(a){switch(a.nodeType){case 1:if(k.test(a.className))break;if("BR"===a.nodeName)h(a),
-a.parentNode&&a.parentNode.removeChild(a);else for(a=a.firstChild;a;a=a.nextSibling)e(a);break;case 3:case 4:if(p){var b=a.nodeValue,d=b.match(t);if(d){var c=b.substring(0,d.index);a.nodeValue=c;(b=b.substring(d.index+d[0].length))&&a.parentNode.insertBefore(s.createTextNode(b),a.nextSibling);h(a);c||a.parentNode.removeChild(a)}}}}function h(a){function b(a,d){var e=d?a.cloneNode(!1):a,f=a.parentNode;if(f){var f=b(f,1),g=a.nextSibling;f.appendChild(e);for(var h=g;h;h=g)g=h.nextSibling,f.appendChild(h)}return e}
-for(;!a.nextSibling;)if(a=a.parentNode,!a)return;for(var a=b(a.nextSibling,0),e;(e=a.parentNode)&&e.nodeType===1;)a=e;d.push(a)}var k=/(?:^|\s)nocode(?:\s|$)/,t=/\r\n?|\n/,s=a.ownerDocument,l;a.currentStyle?l=a.currentStyle.whiteSpace:window.getComputedStyle&&(l=s.defaultView.getComputedStyle(a,q).getPropertyValue("white-space"));var p=l&&"pre"===l.substring(0,3);for(l=s.createElement("LI");a.firstChild;)l.appendChild(a.firstChild);for(var d=[l],g=0;g=0;){var h=m[e];A.hasOwnProperty(h)?window.console&&console.warn("cannot override language handler %s",h):A[h]=a}}function C(a,m){if(!a||!A.hasOwnProperty(a))a=/^\s*=o&&(h+=2);e>=c&&(a+=2)}}catch(w){"console"in window&&console.log(w&&w.stack?w.stack:w)}}var v=["break,continue,do,else,for,if,return,while"],w=[[v,"auto,case,char,const,default,double,enum,extern,float,goto,int,long,register,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"],
-"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],F=[w,"alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,dynamic_cast,explicit,export,friend,inline,late_check,mutable,namespace,nullptr,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],G=[w,"abstract,boolean,byte,extends,final,finally,implements,import,instanceof,null,native,package,strictfp,super,synchronized,throws,transient"],
-H=[G,"as,base,by,checked,decimal,delegate,descending,dynamic,event,fixed,foreach,from,group,implicit,in,interface,internal,into,is,lock,object,out,override,orderby,params,partial,readonly,ref,sbyte,sealed,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,var"],w=[w,"debugger,eval,export,function,get,null,set,undefined,var,with,Infinity,NaN"],I=[v,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"],
-J=[v,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],v=[v,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],K=/^(DIR|FILE|vector|(de|priority_)?queue|list|stack|(const_)?iterator|(multi)?(set|map)|bitset|u?(int|float)\d*)/,N=/\S/,O=u({keywords:[F,H,w,"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END"+
-I,J,v],hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0}),A={};k(O,["default-code"]);k(x([],[["pln",/^[^]+/],["dec",/^]*(?:>|$)/],["com",/^<\!--[\S\s]*?(?:--\>|$)/],["lang-",/^<\?([\S\s]+?)(?:\?>|$)/],["lang-",/^<%([\S\s]+?)(?:%>|$)/],["pun",/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\S\s]+?)<\/xmp\b[^>]*>/i],["lang-js",/^
-
-
-
-
-
-
\ No newline at end of file
diff --git a/api/search.html b/api/search.html
deleted file mode 100644
index 61616063..00000000
--- a/api/search.html
+++ /dev/null
@@ -1,295 +0,0 @@
-
-
-
-
-
-
- Search
-
-
-
-
-
-
- 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:
-
-needle: The string or regular expression you're looking for
-backwards: Whether to search backwards from where cursor currently is. Defaults to false.
-wrap: Whether to wrap the search back to the beginning when it hits the end. Defaults to false.
-caseSensitive: Whether the search ought to be case-sensitive. Defaults to false.
-wholeWord: Whether the search matches only on whole words. Defaults to false.
-range: The Range to search within. Set this to null for the whole document
-regExp: Whether the search is a regular expression or not. Defaults to false.
-start: The starting Range or cursor position to begin the search
-skipCurrent: Whether or not to include the current line in the search. Default to false.
-
-
-
-
-
-
-
- Methods
-
-
-
-
-
- -
-
- - Search.find(EditSession session)
-
-
-
- - Range
-
-
-
-
-
-
-
-
- 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
session EditSession Required. The session to search with
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - Search.findAll(EditSession session)
-
-
-
- - Range
-
-
-
-
-
-
-
-
- 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
session EditSession Required. The session to search with
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - Search.getOptions()
-
-
-
- - Object
-
-
-
-
-
-
-
-
- Returns an object containing all the search options.
-
-
- Returns an object containing all the search options.
-
-
-
-
-
-
-
-
-
-
-
- Searches for options.needle in input, and, if found, replaces it with replacement.
-
-
- Searches for options.needle in input, and, if found, replaces it with replacement.
-
- Arguments
input String Required. The text to search in
-replacement String Required. The replacing text
-
-- (String): If
options.regExp is true, this function returns input with the replacement already made. Otherwise, this function just returns replacement.
-If options.needle was not found, this function returns null.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - Search.setOptions()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/api/selection.html b/api/selection.html
deleted file mode 100644
index 4da8f771..00000000
--- a/api/selection.html
+++ /dev/null
@@ -1,1781 +0,0 @@
-
-
-
-
-
-
- Selection
-
-
-
-
-
-
- Contains the cursor position and the text selection of an edit session.
-The row/columns used in the selection are in document coordinates representing the coordinates as they appear in the document before applying soft wrap and folding.
-
-
-
-
- Constructors
-
-
-
-
-
- -
-
- - new Selection(EditSession session)
-
-
-
-
-
-
- Creates a new Selection object.
-
-
-
-
-
-
-
- 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
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - 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.
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - Selection.detach()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - Selection.fromOrientedRange()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - Selection.getAllRanges()
-
-
-
- - Array
-
-
-
-
-
-
-
-
- Returns a concatenation of all the ranges.
-
-
- Returns a concatenation of all the ranges.
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - Selection.getCursor()
-
-
-
- - Number
-
-
-
-
-
-
-
-
- Gets the current position of the cursor.
-
-
- Gets the current position of the cursor.
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - Selection.getLineRange()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - Selection.getSelectionAnchor()
-
-
-
- - Object
-
-
-
-
-
-
-
-
- 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()
-
-
-
- - Object
-
-
-
-
-
-
-
-
- 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.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - Selection.isBackwards()
-
-
-
- - Boolean
-
-
-
-
-
-
-
-
- Returns true if the selection is going backwards in the document.
-
-
- Returns true if the selection is going backwards in the document.
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - Selection.isEmpty()
-
-
-
- - Boolean
-
-
-
-
-
-
-
-
- Returns true if the selection is empty.
-
-
- Returns true if the selection is empty.
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - Selection.isMultiLine()
-
-
-
- - Boolean
-
-
-
-
-
-
-
-
- Returns true if the selection is a multi-line.
-
-
- Returns true if the selection is a multi-line.
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - Selection.mergeOverlappingRanges()
-
-
-
-
-
-
- Merges overlapping ranges ensuring consistency after changes
-
-
- Merges overlapping ranges ensuring consistency after changes
-
-
-
-
-
-
-
-
-
-
-
- Moves the cursor to position indicated by the parameters. Negative numbers move the cursor backwards in the document.
-
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - Selection.moveCursorDown()
-
-
-
-
-
-
- Moves the cursor down one row.
-
-
- Moves the cursor down one row.
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - Selection.moveCursorFileEnd()
-
-
-
-
-
-
- Moves the cursor to the end of the file.
-
-
- Moves the cursor to the end of the file.
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - Selection.moveCursorFileStart()
-
-
-
-
-
-
- Moves the cursor to the start of the file.
-
-
- Moves the cursor to the start of the file.
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - Selection.moveCursorLeft()
-
-
-
-
-
-
- Moves the cursor left one column.
-
-
- Moves the cursor left one column.
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - Selection.moveCursorLineEnd()
-
-
-
-
-
-
- Moves the cursor to the end of the line.
-
-
- Moves the cursor to the end of the line.
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - Selection.moveCursorLineStart()
-
-
-
-
-
-
- Moves the cursor to the start of the line.
-
-
- Moves the cursor to the start of the line.
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - Selection.moveCursorLongWordLeft()
-
-
-
-
-
-
- Moves the cursor to the word on the left.
-
-
- Moves the cursor to the word on the left.
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - Selection.moveCursorLongWordRight()
-
-
-
-
-
-
- Moves the cursor to the word on the right.
-
-
- Moves the cursor to the word on the right.
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - Selection.moveCursorRight()
-
-
-
-
-
-
- Moves the cursor right one column.
-
-
- Moves the cursor right one column.
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - Selection.moveCursorShortWordLeft()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - Selection.moveCursorShortWordRight()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Moves the cursor to the row and column provided. If preventUpdateDesiredColumn is true, then the cursor stays in the same column position as its original point.
-
-
- Moves the cursor to the row and column provided. If preventUpdateDesiredColumn is true, then the cursor stays in the same column position as its original point.
-
- Arguments
row Number Required. The row to move to
-column Number Required. The column to move to
-keepDesiredColumn Boolean Required. If true, the cursor move does not respect the previous column
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Moves the cursor to the screen position indicated by row and column. If preventUpdateDesiredColumn is true, then the cursor stays in the same column position as its original point.
-
-
- Moves the cursor to the screen position indicated by row and column. If preventUpdateDesiredColumn is true, then the cursor stays in the same column position as its original point.
-
- Arguments
row Number Required. The row to move to
-column Number Required. The column to move to
-keepDesiredColumn Boolean 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.
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - Selection.moveCursorWordLeft()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - Selection.moveCursorWordRight()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Gets list of ranges composing rectangular block on the screen
-
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - Selection.selectAll()
-
-
-
-
-
-
- Selects all the text in the document.
-
-
- Selects all the text in the document.
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - Selection.selectAWord()
-
-
-
-
-
-
- Selects a word, including its right whitespace.
-
-
- Selects a word, including its right whitespace.
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - Selection.selectDown()
-
-
-
-
-
-
- Moves the selection down one row.
-
-
- Moves the selection down one row.
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - Selection.selectFileEnd()
-
-
-
-
-
-
- Moves the selection to the end of the file.
-
-
- Moves the selection to the end of the file.
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - Selection.selectFileStart()
-
-
-
-
-
-
- Moves the selection to the start of the file.
-
-
- Moves the selection to the start of the file.
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - Selection.selectLeft()
-
-
-
-
-
-
- Moves the selection left one column.
-
-
- Moves the selection left one column.
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - Selection.selectLine()
-
-
-
-
-
-
- Selects the entire line.
-
-
- Selects the entire line.
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - Selection.selectLineEnd()
-
-
-
-
-
-
- Moves the selection to the end of the current line.
-
-
- Moves the selection to the end of the current line.
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - Selection.selectLineStart()
-
-
-
-
-
-
- Moves the selection to the beginning of the current line.
-
-
- Moves the selection to the beginning of the current line.
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - Selection.selectRight()
-
-
-
-
-
-
- Moves the selection right one column.
-
-
- Moves the selection right one column.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - Selection.selectUp()
-
-
-
-
-
-
- Moves the selection up one row.
-
-
- Moves the selection up one row.
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - Selection.selectWord()
-
-
-
-
-
-
- Selects an entire word boundary.
-
-
- Selects an entire word boundary.
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - Selection.selectWordLeft()
-
-
-
-
-
-
- Moves the selection to the first word on the left.
-
-
- Moves the selection to the first word on the left.
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - Selection.selectWordRight()
-
-
-
-
-
-
- Moves the selection to the first word on the right.
-
-
- Moves the selection to the first word on the right.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - 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
columns Number Required. The number of columns to shift by
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - Selection.splitIntoLines()
-
-
-
-
-
-
- Splits all the ranges into lines.
-
-
- Splits all the ranges into lines.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - Selection.toggleBlockSelection()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - Selection.toOrientedRange()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - Selection.toSingleRange()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/api/split.html b/api/split.html
deleted file mode 100644
index fd75edce..00000000
--- a/api/split.html
+++ /dev/null
@@ -1,640 +0,0 @@
-
-
-
-
-
-
- Split
-
-
-
-
-
-
- Methods
-
-
-
-
-
- -
-
- - Split.blur()
-
-
-
-
-
-
- Blurs the current editor.
-
-
- Blurs the current editor.
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - Split.execute()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - Split.focus()
-
-
-
-
-
-
- Focuses the current editor.
-
-
- Focuses the current editor.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - Split.getCurrentEditor()
-
-
-
- - Editor
-
-
-
-
-
-
-
-
- Returns the current editor.
-
-
- Returns the current editor.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - Split.getOrientation()
-
-
-
- - Number
-
-
-
-
-
-
-
-
- Returns the orientation.
-
-
- Returns the orientation.
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - Split.getSplits()
-
-
-
- - Number
-
-
-
-
-
-
-
-
- Returns the number of splits.
-
-
- Returns the number of splits.
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - Split.hasRedo()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - Split.hasUndo()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - Split.redo()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - Split.reset()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - Split.resize()
-
-
-
-
-
-
- Resizes the editor.
-
-
- Resizes the editor.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - Split.setSession(EditSession session, Number idx)
-
-
-
-
-
-
-
-
-
- Arguments
session EditSession Required. The new edit session
-idx Number Required. The editor's index you're interested in
-Sets a new EditSession for the indicated editor.
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - Split.setSplits()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - Split.undo()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - Split.UndoManagerProxy()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/api/token_iterator.html b/api/token_iterator.html
deleted file mode 100644
index 7c025da0..00000000
--- a/api/token_iterator.html
+++ /dev/null
@@ -1,248 +0,0 @@
-
-
-
-
-
-
- TokenIterator
-
-
-
-
-
-
- This class provides an essay way to treat the document as a stream of tokens, and provides methods to iterate over these tokens.
-
-
-
-
- Constructors
-
-
-
-
-
- -
-
- - new TokenIterator(EditSession session, Number initialRow, Number initialColumn)
-
-
-
-
-
-
- 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
session EditSession Required. The session to associate with
-initialRow Number Required. The row to start the tokenizing at
-initialColumn Number Required. The column to start the tokenizing at
-
-
-
-
-
-
- Methods
-
-
-
-
-
- -
-
- - TokenIterator.getCurrentToken()
-
-
-
- - String
-
-
-
-
-
-
-
-
- Returns the current tokenized string.
-
-
- Returns the current tokenized string.
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - TokenIterator.getCurrentTokenColumn()
-
-
-
- - Number
-
-
-
-
-
-
-
-
- Returns the current column.
-
-
- Returns the current column.
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - TokenIterator.getCurrentTokenRow()
-
-
-
- - Number
-
-
-
-
-
-
-
-
- Returns the current row.
-
-
- Returns the current row.
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - TokenIterator.stepBackward()
-
-
-
- - String
-
-
-
-
-
-
-
-
- Tokenizes all the items from the current point to the row prior in the document.
-
-
- Tokenizes all the items from the current point to the row prior in the document.
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - TokenIterator.stepForward()
-
-
-
- - 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.
-
-
- 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
diff --git a/api/tokenizer.html b/api/tokenizer.html
deleted file mode 100644
index b45bd58d..00000000
--- a/api/tokenizer.html
+++ /dev/null
@@ -1,122 +0,0 @@
-
-
-
-
-
-
- Tokenizer
-
-
-
-
-
-
- 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
-
-
-
-
-
-
-
-
- Methods
-
-
-
-
-
- Returns an object containing two properties: tokens, which contains all the tokens; and state, the current state.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/api/undomanager.html b/api/undomanager.html
deleted file mode 100644
index fafd4131..00000000
--- a/api/undomanager.html
+++ /dev/null
@@ -1,271 +0,0 @@
-
-
-
-
-
-
- UndoManager
-
-
-
-
-
-
- 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.hasRedo()
-
-
-
- - Boolean
-
-
-
-
-
-
-
-
- Returns true if there are redo operations left to perform.
-
-
- Returns true if there are redo operations left to perform.
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - UndoManager.hasUndo()
-
-
-
- - Boolean
-
-
-
-
-
-
-
-
- Returns true if there are undo operations left to perform.
-
-
- Returns true if there are undo operations left to perform.
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - UndoManager.redo(Boolean dontSelect)
-
-
-
-
-
-
- Perform a redo operation on the document, reimplementing the last change.
-
-
- Perform a redo operation on the document, reimplementing the last change.
-
- Arguments
dontSelect Boolean Required. If true, doesn't select the range of where the change occured
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - UndoManager.reset()
-
-
-
-
-
-
- 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.
-
-
- Perform an undo operation on the document, reverting the last change.
-
- Arguments
dontSelect Boolean Required. If true, doesn't select the range of where the change occured
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/api/virtual_renderer.html b/api/virtual_renderer.html
deleted file mode 100644
index 952e6ae6..00000000
--- a/api/virtual_renderer.html
+++ /dev/null
@@ -1,2190 +0,0 @@
-
-
-
-
-
-
- VirtualRenderer
-
-
-
-
-
-
- The class that is responsible for drawing everything you see on the screen!
-
-
-
-
- Constructors
-
-
-
-
-
- -
-
- - new VirtualRenderer(DOMElement container, String theme)
-
-
-
-
-
-
- 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
container DOMElement Required. The root element of the editor
-theme String Required. The starting theme
-
-
-
-
-
-
- Methods
-
-
-
-
-
- -
-
- - VirtualRenderer._loadTheme()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 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.alignCursor()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - VirtualRenderer.animateScrolling()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - VirtualRenderer.destroy()
-
-
-
-
-
-
- Destroys the text and cursor layers for this renderer.
-
-
- Destroys the text and cursor layers for this renderer.
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - VirtualRenderer.getAnimatedScroll()
-
-
-
- - Boolean
-
-
-
-
-
-
-
-
- Returns whether an animated scroll happens or not.
-
-
- Returns whether an animated scroll happens or not.
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - VirtualRenderer.getContainerElement()
-
-
-
- - DOMElement
-
-
-
-
-
-
-
-
- Returns the root element containing this renderer.
-
-
- Returns the root element containing this renderer.
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - VirtualRenderer.getDisplayIndentGuides()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - VirtualRenderer.getFadeFoldWidgets()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - VirtualRenderer.getFirstFullyVisibleRow()
-
-
-
- - Number
-
-
-
-
-
-
-
-
- Returns the index of the first fully visible row. "Fully" here means that the characters in the row are not truncated; that the top and the bottom of the row are on the screen.
-
-
- Returns the index of the first fully visible row. "Fully" here means that the characters in the row are not truncated; that the top and the bottom of the row are on the screen.
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - VirtualRenderer.getFirstVisibleRow()
-
-
-
- - Number
-
-
-
-
-
-
-
-
- Returns the index of the first visible row.
-
-
- Returns the index of the first visible row.
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - VirtualRenderer.getHighlightGutterLine()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - VirtualRenderer.getHScrollBarAlwaysVisible()
-
-
-
- - Boolean
-
-
-
-
-
-
-
-
- Returns whether the horizontal scrollbar is set to be always visible.
-
-
- Returns whether the horizontal scrollbar is set to be always visible.
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - VirtualRenderer.getLastFullyVisibleRow()
-
-
-
- - Number
-
-
-
-
-
-
-
-
- Returns the index of the last fully visible row. "Fully" here means that the characters in the row are not truncated; that the top and the bottom of the row are on the screen.
-
-
- Returns the index of the last fully visible row. "Fully" here means that the characters in the row are not truncated; that the top and the bottom of the row are on the screen.
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - VirtualRenderer.getLastVisibleRow()
-
-
-
- - Number
-
-
-
-
-
-
-
-
- Returns the index of the last visible row.
-
-
- Returns the index of the last visible row.
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - VirtualRenderer.getMouseEventTarget()
-
-
-
- - DOMElement
-
-
-
-
-
-
-
-
- Returns the element that the mouse events are attached to
-
-
- Returns the element that the mouse events are attached to
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - VirtualRenderer.getPrintMarginColumn()
-
-
-
- - Boolean
-
-
-
-
-
-
-
-
- Returns whether the print margin column is being shown or not.
-
-
- Returns whether the print margin column is being shown or not.
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - VirtualRenderer.getScrollBottomRow()
-
-
-
- - Number
-
-
-
-
-
-
-
-
- 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.
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - VirtualRenderer.getScrollLeft()
-
-
-
- - Number
-
-
-
-
-
-
-
-
- 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.
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - VirtualRenderer.getScrollTop()
-
-
-
- - Number
-
-
-
-
-
-
-
-
- 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()
-
-
-
- - Number
-
-
-
-
-
-
-
-
- Returns the first visible row, regardless of whether it's fully visible or not.
-
-
- Returns the first visible row, regardless of whether it's fully visible or not.
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - VirtualRenderer.getShowGutter()
-
-
-
- - Boolean
-
-
-
-
-
-
-
-
- Returns true if the gutter is being shown.
-
-
- Returns true if the gutter is being shown.
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - VirtualRenderer.getShowInvisibles()
-
-
-
- - Boolean
-
-
-
-
-
-
-
-
- Returns whether invisible characters are being shown or not.
-
-
- Returns whether invisible characters are being shown or not.
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - VirtualRenderer.getShowPrintMargin()
-
-
-
- - Boolean
-
-
-
-
-
-
-
-
- Returns whether the print margin is being shown or not.
-
-
- Returns whether the print margin is being shown or not.
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - VirtualRenderer.getTextAreaContainer()
-
-
-
- - DOMElement
-
-
-
-
-
-
-
-
- Returns the element to which the hidden text area is added.
-
-
- Returns the element to which the hidden text area is added.
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - VirtualRenderer.getTheme()
-
-
-
- - String
-
-
-
-
-
-
-
-
- Returns the path of the current theme.
-
-
- Returns the path of the current theme.
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - VirtualRenderer.hideComposition()
-
-
-
-
-
-
- Hides the current composition.
-
-
- Hides the current composition.
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - VirtualRenderer.hideCursor()
-
-
-
-
-
-
- Hides the cursor icon.
-
-
- Hides the cursor icon.
-
-
-
-
-
-
-
-
-
-
-
- Returns true if you can still scroll by either parameter; in other words, you haven't reached the end of the file or line.
-
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - VirtualRenderer.onChangeTabSize()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - VirtualRenderer.onGutterResize()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Triggers a resize of the editor.
-
-
- Triggers a resize of the editor.
-
- Arguments
force Boolean Required. If true, recomputes the size, even if the height and width haven't changed
-gutterWidth Number Required. The width of the gutter in pixels
-width Number Required. The width of the editor in pixels
-height Number Required. The hiehgt of the editor, in pixels
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - VirtualRenderer.pixelToScreenCoordinates()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Deprecated; (moved to EditSession)
-
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - VirtualRenderer.screenToTextCoordinates()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - VirtualRenderer.scrollSelectionIntoView()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Gracefully scrolls the editor to the row indicated.
-
-
- Gracefully scrolls the editor to the row indicated.
-
- Arguments
line Number Required. A line number
-center Boolean Required. If true, centers the editor the to indicated line
-animate Boolean Required. If true animates scrolling
-callback Function Required. Function to be called after the animation has finished
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - VirtualRenderer.setAnimatedScroll(Boolean shouldAnimate)
-
-
-
-
-
-
- Identifies whether you want to have an animated scroll or not.
-
-
- Identifies whether you want to have an animated scroll or not.
-
- Arguments
shouldAnimate Boolean Required. Set to true to show animated scrolls
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - VirtualRenderer.setDisplayIndentGuides()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - VirtualRenderer.setFadeFoldWidgets()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - VirtualRenderer.setHighlightGutterLine()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - VirtualRenderer.setHScrollBarAlwaysVisible(Boolean alwaysVisible)
-
-
-
-
-
-
- Identifies whether you want to show the horizontal scrollbar or not.
-
-
- Identifies whether you want to show the horizontal scrollbar or not.
-
- Arguments
alwaysVisible Boolean Required. Set to true to make the horizontal scroll bar visible
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - 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
showPrintMargin Boolean Required. Set to true to show the print margin column
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - VirtualRenderer.setSession(Object session)
-
-
-
-
-
-
- Associates the renderer with an EditSession.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - VirtualRenderer.setShowInvisibles(Boolean showInvisibles)
-
-
-
-
-
-
- Identifies whether you want to show invisible characters or not.
-
-
- Identifies whether you want to show invisible characters or not.
-
- Arguments
showInvisibles Boolean Required. Set to true to show invisibles
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - VirtualRenderer.setShowPrintMargin(Boolean showPrintMargin)
-
-
-
-
-
-
- Identifies whether you want to show the print margin or not.
-
-
- Identifies whether you want to show the print margin or not.
-
- Arguments
showPrintMargin Boolean Required. Set to true to show the print margin
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - VirtualRenderer.setStyle()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - VirtualRenderer.setTheme(String theme)
-
-
-
-
-
-
- Sets a new theme for the editor. theme should exist, and be a directory path, like ace/theme/textmate.
-
-
- Sets a new theme for the editor. theme should exist, and be a directory path, like ace/theme/textmate.
-
- Arguments
theme String Required. The path to a theme
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - VirtualRenderer.showCursor()
-
-
-
-
-
-
- Shows the cursor icon.
-
-
- Shows the cursor icon.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - VirtualRenderer.updateBackMarkers()
-
-
-
-
-
-
- Schedules an update to all the back markers in the document.
-
-
- Schedules an update to all the back markers in the document.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - VirtualRenderer.updateCharacterSize()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - VirtualRenderer.updateCursor()
-
-
-
-
-
-
- Updates the cursor icon.
-
-
- Updates the cursor icon.
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - VirtualRenderer.updateFontSize()
-
-
-
-
-
-
- Updates the font size.
-
-
- Updates the font size.
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - VirtualRenderer.updateFrontMarkers()
-
-
-
-
-
-
- Schedules an update to all the front markers in the document.
-
-
- Schedules an update to all the front markers in the document.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - VirtualRenderer.updateText()
-
-
-
-
-
-
- Triggers a full update of the text, for all the rows.
-
-
- Triggers a full update of the text, for all the rows.
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - VirtualRenderer.visualizeBlur()
-
-
-
-
-
-
- Blurs the current container.
-
-
- Blurs the current container.
-
-
-
-
-
-
-
-
-
-
-
- -
-
- - VirtualRenderer.visualizeFocus()
-
-
-
-
-
-
- Focuses the current container.
-
-
- Focuses the current container.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/build b/build
deleted file mode 160000
index a4e495d8..00000000
--- a/build
+++ /dev/null
@@ -1 +0,0 @@
-Subproject commit a4e495d8901876c6bafe3870a35cb8e32c827e97
diff --git a/build/ChangeLog.txt b/build/ChangeLog.txt
new file mode 100644
index 00000000..9eb65941
--- /dev/null
+++ b/build/ChangeLog.txt
@@ -0,0 +1,50 @@
+2011.02.14, Version 0.1.6
+
+* Floating Anchors
+ - An Anchor is a floating pointer in the document.
+ - Whenever text is inserted or deleted before the cursor, the position of the cursor is updated
+ - Usesd for the cursor and selection
+ - Basis for bookmarks, multiple cursors and snippets in the future
+* Extensive support for Cocoa style keybindings on the Mac
+* New commands:
+ - center selection in viewport
+ - remove to end/start of line
+ - split line
+ - transpose letters
+* Refator markers
+ - Custom code can be used to render markers
+ - Markers can be in front or behind the text
+ - Markers are now stored in the session (was in the renderer)
+* Lots of IE8 fixes including copy, cut and selections
+* Unit tests can also be run in the browser
+* Soft wrap can adapt to the width of the editor (Mike Ratcliffe, Joe Cheng)
+* Add minimal node server server.js to run the Ace demo in Chrome
+* The top level editor.html demo has been renamed to index.html
+* Bug fixes
+ - Fixed gotoLine to consider wrapped lines when calculating where to scroll to (James Allen)
+ - Fixed isues when the editor was scrolled in the web page (Eric Allam)
+ - Highlighting of Python string literals
+ - Syntax rule for PHP comments
+
+2011.02.08, Version 0.1.5
+
+* Add Coffeescript Mode (Satoshi Murakami)
+* Fix word wrap bug (Julian Viereck)
+* Fix packaged version of the Eclipse mode
+* Loading of workers is more robust
+* Fix "click selection"
+* Allow tokizing empty lines (Daniel Krech)
+* Make PageUp/Down behavior more consistent with native OS (Joe Cheng)
+
+2011.02.04, Version 0.1.4
+
+* Add C/C++ mode contributed by Gastón Kleiman
+* Fix exception in key input
+
+2011.02.04, Version 0.1.3
+
+* Let the packaged version play nice with requireJS
+* Add Ruby mode contributed by Shlomo Zalman Heigh
+* Add Java mode contributed by Tom Tasche
+* Fix annotation bug
+* Changing a document added a new empty line at the end
\ No newline at end of file
diff --git a/build/LICENSE b/build/LICENSE
new file mode 100644
index 00000000..853e4fd5
--- /dev/null
+++ b/build/LICENSE
@@ -0,0 +1,476 @@
+Licensed under the tri-license MPL/LGPL/GPL.
+
+ MOZILLA PUBLIC LICENSE
+ Version 1.1
+
+ ---------------
+
+1. Definitions.
+
+ 1.0.1. "Commercial Use" means distribution or otherwise making the
+ Covered Code available to a third party.
+
+ 1.1. "Contributor" means each entity that creates or contributes to
+ the creation of Modifications.
+
+ 1.2. "Contributor Version" means the combination of the Original
+ Code, prior Modifications used by a Contributor, and the Modifications
+ made by that particular Contributor.
+
+ 1.3. "Covered Code" means the Original Code or Modifications or the
+ combination of the Original Code and Modifications, in each case
+ including portions thereof.
+
+ 1.4. "Electronic Distribution Mechanism" means a mechanism generally
+ accepted in the software development community for the electronic
+ transfer of data.
+
+ 1.5. "Executable" means Covered Code in any form other than Source
+ Code.
+
+ 1.6. "Initial Developer" means the individual or entity identified
+ as the Initial Developer in the Source Code notice required by Exhibit
+ A.
+
+ 1.7. "Larger Work" means a work which combines Covered Code or
+ portions thereof with code not governed by the terms of this License.
+
+ 1.8. "License" means this document.
+
+ 1.8.1. "Licensable" means having the right to grant, to the maximum
+ extent possible, whether at the time of the initial grant or
+ subsequently acquired, any and all of the rights conveyed herein.
+
+ 1.9. "Modifications" means any addition to or deletion from the
+ substance or structure of either the Original Code or any previous
+ Modifications. When Covered Code is released as a series of files, a
+ Modification is:
+ A. Any addition to or deletion from the contents of a file
+ containing Original Code or previous Modifications.
+
+ B. Any new file that contains any part of the Original Code or
+ previous Modifications.
+
+ 1.10. "Original Code" means Source Code of computer software code
+ which is described in the Source Code notice required by Exhibit A as
+ Original Code, and which, at the time of its release under this
+ License is not already Covered Code governed by this License.
+
+ 1.10.1. "Patent Claims" means any patent claim(s), now owned or
+ hereafter acquired, including without limitation, method, process,
+ and apparatus claims, in any patent Licensable by grantor.
+
+ 1.11. "Source Code" means the preferred form of the Covered Code for
+ making modifications to it, including all modules it contains, plus
+ any associated interface definition files, scripts used to control
+ compilation and installation of an Executable, or source code
+ differential comparisons against either the Original Code or another
+ well known, available Covered Code of the Contributor's choice. The
+ Source Code can be in a compressed or archival form, provided the
+ appropriate decompression or de-archiving software is widely available
+ for no charge.
+
+ 1.12. "You" (or "Your") means an individual or a legal entity
+ exercising rights under, and complying with all of the terms of, this
+ License or a future version of this License issued under Section 6.1.
+ For legal entities, "You" includes any entity which controls, is
+ controlled by, or is under common control with You. For purposes of
+ this definition, "control" means (a) the power, direct or indirect,
+ to cause the direction or management of such entity, whether by
+ contract or otherwise, or (b) ownership of more than fifty percent
+ (50%) of the outstanding shares or beneficial ownership of such
+ entity.
+
+2. Source Code License.
+
+ 2.1. The Initial Developer Grant.
+ The Initial Developer hereby grants You a world-wide, royalty-free,
+ non-exclusive license, subject to third party intellectual property
+ claims:
+ (a) under intellectual property rights (other than patent or
+ trademark) Licensable by Initial Developer to use, reproduce,
+ modify, display, perform, sublicense and distribute the Original
+ Code (or portions thereof) with or without Modifications, and/or
+ as part of a Larger Work; and
+
+ (b) under Patents Claims infringed by the making, using or
+ selling of Original Code, to make, have made, use, practice,
+ sell, and offer for sale, and/or otherwise dispose of the
+ Original Code (or portions thereof).
+
+ (c) the licenses granted in this Section 2.1(a) and (b) are
+ effective on the date Initial Developer first distributes
+ Original Code under the terms of this License.
+
+ (d) Notwithstanding Section 2.1(b) above, no patent license is
+ granted: 1) for code that You delete from the Original Code; 2)
+ separate from the Original Code; or 3) for infringements caused
+ by: i) the modification of the Original Code or ii) the
+ combination of the Original Code with other software or devices.
+
+ 2.2. Contributor Grant.
+ Subject to third party intellectual property claims, each Contributor
+ hereby grants You a world-wide, royalty-free, non-exclusive license
+
+ (a) under intellectual property rights (other than patent or
+ trademark) Licensable by Contributor, to use, reproduce, modify,
+ display, perform, sublicense and distribute the Modifications
+ created by such Contributor (or portions thereof) either on an
+ unmodified basis, with other Modifications, as Covered Code
+ and/or as part of a Larger Work; and
+
+ (b) under Patent Claims infringed by the making, using, or
+ selling of Modifications made by that Contributor either alone
+ and/or in combination with its Contributor Version (or portions
+ of such combination), to make, use, sell, offer for sale, have
+ made, and/or otherwise dispose of: 1) Modifications made by that
+ Contributor (or portions thereof); and 2) the combination of
+ Modifications made by that Contributor with its Contributor
+ Version (or portions of such combination).
+
+ (c) the licenses granted in Sections 2.2(a) and 2.2(b) are
+ effective on the date Contributor first makes Commercial Use of
+ the Covered Code.
+
+ (d) Notwithstanding Section 2.2(b) above, no patent license is
+ granted: 1) for any code that Contributor has deleted from the
+ Contributor Version; 2) separate from the Contributor Version;
+ 3) for infringements caused by: i) third party modifications of
+ Contributor Version or ii) the combination of Modifications made
+ by that Contributor with other software (except as part of the
+ Contributor Version) or other devices; or 4) under Patent Claims
+ infringed by Covered Code in the absence of Modifications made by
+ that Contributor.
+
+3. Distribution Obligations.
+
+ 3.1. Application of License.
+ The Modifications which You create or to which You contribute are
+ governed by the terms of this License, including without limitation
+ Section 2.2. The Source Code version of Covered Code may be
+ distributed only under the terms of this License or a future version
+ of this License released under Section 6.1, and You must include a
+ copy of this License with every copy of the Source Code You
+ distribute. You may not offer or impose any terms on any Source Code
+ version that alters or restricts the applicable version of this
+ License or the recipients' rights hereunder. However, You may include
+ an additional document offering the additional rights described in
+ Section 3.5.
+
+ 3.2. Availability of Source Code.
+ Any Modification which You create or to which You contribute must be
+ made available in Source Code form under the terms of this License
+ either on the same media as an Executable version or via an accepted
+ Electronic Distribution Mechanism to anyone to whom you made an
+ Executable version available; and if made available via Electronic
+ Distribution Mechanism, must remain available for at least twelve (12)
+ months after the date it initially became available, or at least six
+ (6) months after a subsequent version of that particular Modification
+ has been made available to such recipients. You are responsible for
+ ensuring that the Source Code version remains available even if the
+ Electronic Distribution Mechanism is maintained by a third party.
+
+ 3.3. Description of Modifications.
+ You must cause all Covered Code to which You contribute to contain a
+ file documenting the changes You made to create that Covered Code and
+ the date of any change. You must include a prominent statement that
+ the Modification is derived, directly or indirectly, from Original
+ Code provided by the Initial Developer and including the name of the
+ Initial Developer in (a) the Source Code, and (b) in any notice in an
+ Executable version or related documentation in which You describe the
+ origin or ownership of the Covered Code.
+
+ 3.4. Intellectual Property Matters
+ (a) Third Party Claims.
+ If Contributor has knowledge that a license under a third party's
+ intellectual property rights is required to exercise the rights
+ granted by such Contributor under Sections 2.1 or 2.2,
+ Contributor must include a text file with the Source Code
+ distribution titled "LEGAL" which describes the claim and the
+ party making the claim in sufficient detail that a recipient will
+ know whom to contact. If Contributor obtains such knowledge after
+ the Modification is made available as described in Section 3.2,
+ Contributor shall promptly modify the LEGAL file in all copies
+ Contributor makes available thereafter and shall take other steps
+ (such as notifying appropriate mailing lists or newsgroups)
+ reasonably calculated to inform those who received the Covered
+ Code that new knowledge has been obtained.
+
+ (b) Contributor APIs.
+ If Contributor's Modifications include an application programming
+ interface and Contributor has knowledge of patent licenses which
+ are reasonably necessary to implement that API, Contributor must
+ also include this information in the LEGAL file.
+
+ (c) Representations.
+ Contributor represents that, except as disclosed pursuant to
+ Section 3.4(a) above, Contributor believes that Contributor's
+ Modifications are Contributor's original creation(s) and/or
+ Contributor has sufficient rights to grant the rights conveyed by
+ this License.
+
+ 3.5. Required Notices.
+ You must duplicate the notice in Exhibit A in each file of the Source
+ Code. If it is not possible to put such notice in a particular Source
+ Code file due to its structure, then You must include such notice in a
+ location (such as a relevant directory) where a user would be likely
+ to look for such a notice. If You created one or more Modification(s)
+ You may add your name as a Contributor to the notice described in
+ Exhibit A. You must also duplicate this License in any documentation
+ for the Source Code where You describe recipients' rights or ownership
+ rights relating to Covered Code. You may choose to offer, and to
+ charge a fee for, warranty, support, indemnity or liability
+ obligations to one or more recipients of Covered Code. However, You
+ may do so only on Your own behalf, and not on behalf of the Initial
+ Developer or any Contributor. You must make it absolutely clear than
+ any such warranty, support, indemnity or liability obligation is
+ offered by You alone, and You hereby agree to indemnify the Initial
+ Developer and every Contributor for any liability incurred by the
+ Initial Developer or such Contributor as a result of warranty,
+ support, indemnity or liability terms You offer.
+
+ 3.6. Distribution of Executable Versions.
+ You may distribute Covered Code in Executable form only if the
+ requirements of Section 3.1-3.5 have been met for that Covered Code,
+ and if You include a notice stating that the Source Code version of
+ the Covered Code is available under the terms of this License,
+ including a description of how and where You have fulfilled the
+ obligations of Section 3.2. The notice must be conspicuously included
+ in any notice in an Executable version, related documentation or
+ collateral in which You describe recipients' rights relating to the
+ Covered Code. You may distribute the Executable version of Covered
+ Code or ownership rights under a license of Your choice, which may
+ contain terms different from this License, provided that You are in
+ compliance with the terms of this License and that the license for the
+ Executable version does not attempt to limit or alter the recipient's
+ rights in the Source Code version from the rights set forth in this
+ License. If You distribute the Executable version under a different
+ license You must make it absolutely clear that any terms which differ
+ from this License are offered by You alone, not by the Initial
+ Developer or any Contributor. You hereby agree to indemnify the
+ Initial Developer and every Contributor for any liability incurred by
+ the Initial Developer or such Contributor as a result of any such
+ terms You offer.
+
+ 3.7. Larger Works.
+ You may create a Larger Work by combining Covered Code with other code
+ not governed by the terms of this License and distribute the Larger
+ Work as a single product. In such a case, You must make sure the
+ requirements of this License are fulfilled for the Covered Code.
+
+4. Inability to Comply Due to Statute or Regulation.
+
+ If it is impossible for You to comply with any of the terms of this
+ License with respect to some or all of the Covered Code due to
+ statute, judicial order, or regulation then You must: (a) comply with
+ the terms of this License to the maximum extent possible; and (b)
+ describe the limitations and the code they affect. Such description
+ must be included in the LEGAL file described in Section 3.4 and must
+ be included with all distributions of the Source Code. Except to the
+ extent prohibited by statute or regulation, such description must be
+ sufficiently detailed for a recipient of ordinary skill to be able to
+ understand it.
+
+5. Application of this License.
+
+ This License applies to code to which the Initial Developer has
+ attached the notice in Exhibit A and to related Covered Code.
+
+6. Versions of the License.
+
+ 6.1. New Versions.
+ Netscape Communications Corporation ("Netscape") may publish revised
+ and/or new versions of the License from time to time. Each version
+ will be given a distinguishing version number.
+
+ 6.2. Effect of New Versions.
+ Once Covered Code has been published under a particular version of the
+ License, You may always continue to use it under the terms of that
+ version. You may also choose to use such Covered Code under the terms
+ of any subsequent version of the License published by Netscape. No one
+ other than Netscape has the right to modify the terms applicable to
+ Covered Code created under this License.
+
+ 6.3. Derivative Works.
+ If You create or use a modified version of this License (which you may
+ only do in order to apply it to code which is not already Covered Code
+ governed by this License), You must (a) rename Your license so that
+ the phrases "Mozilla", "MOZILLAPL", "MOZPL", "Netscape",
+ "MPL", "NPL" or any confusingly similar phrase do not appear in your
+ license (except to note that your license differs from this License)
+ and (b) otherwise make it clear that Your version of the license
+ contains terms which differ from the Mozilla Public License and
+ Netscape Public License. (Filling in the name of the Initial
+ Developer, Original Code or Contributor in the notice described in
+ Exhibit A shall not of themselves be deemed to be modifications of
+ this License.)
+
+7. DISCLAIMER OF WARRANTY.
+
+ COVERED CODE IS PROVIDED UNDER THIS LICENSE ON AN "AS IS" BASIS,
+ WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ WITHOUT LIMITATION, WARRANTIES THAT THE COVERED CODE IS FREE OF
+ DEFECTS, MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE OR NON-INFRINGING.
+ THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE COVERED CODE
+ IS WITH YOU. SHOULD ANY COVERED CODE PROVE DEFECTIVE IN ANY RESPECT,
+ YOU (NOT THE INITIAL DEVELOPER OR ANY OTHER CONTRIBUTOR) ASSUME THE
+ COST OF ANY NECESSARY SERVICING, REPAIR OR CORRECTION. THIS DISCLAIMER
+ OF WARRANTY CONSTITUTES AN ESSENTIAL PART OF THIS LICENSE. NO USE OF
+ ANY COVERED CODE IS AUTHORIZED HEREUNDER EXCEPT UNDER THIS DISCLAIMER.
+
+8. TERMINATION.
+
+ 8.1. This License and the rights granted hereunder will terminate
+ automatically if You fail to comply with terms herein and fail to cure
+ such breach within 30 days of becoming aware of the breach. All
+ sublicenses to the Covered Code which are properly granted shall
+ survive any termination of this License. Provisions which, by their
+ nature, must remain in effect beyond the termination of this License
+ shall survive.
+
+ 8.2. If You initiate litigation by asserting a patent infringement
+ claim (excluding declatory judgment actions) against Initial Developer
+ or a Contributor (the Initial Developer or Contributor against whom
+ You file such action is referred to as "Participant") alleging that:
+
+ (a) such Participant's Contributor Version directly or indirectly
+ infringes any patent, then any and all rights granted by such
+ Participant to You under Sections 2.1 and/or 2.2 of this License
+ shall, upon 60 days notice from Participant terminate prospectively,
+ unless if within 60 days after receipt of notice You either: (i)
+ agree in writing to pay Participant a mutually agreeable reasonable
+ royalty for Your past and future use of Modifications made by such
+ Participant, or (ii) withdraw Your litigation claim with respect to
+ the Contributor Version against such Participant. If within 60 days
+ of notice, a reasonable royalty and payment arrangement are not
+ mutually agreed upon in writing by the parties or the litigation claim
+ is not withdrawn, the rights granted by Participant to You under
+ Sections 2.1 and/or 2.2 automatically terminate at the expiration of
+ the 60 day notice period specified above.
+
+ (b) any software, hardware, or device, other than such Participant's
+ Contributor Version, directly or indirectly infringes any patent, then
+ any rights granted to You by such Participant under Sections 2.1(b)
+ and 2.2(b) are revoked effective as of the date You first made, used,
+ sold, distributed, or had made, Modifications made by that
+ Participant.
+
+ 8.3. If You assert a patent infringement claim against Participant
+ alleging that such Participant's Contributor Version directly or
+ indirectly infringes any patent where such claim is resolved (such as
+ by license or settlement) prior to the initiation of patent
+ infringement litigation, then the reasonable value of the licenses
+ granted by such Participant under Sections 2.1 or 2.2 shall be taken
+ into account in determining the amount or value of any payment or
+ license.
+
+ 8.4. In the event of termination under Sections 8.1 or 8.2 above,
+ all end user license agreements (excluding distributors and resellers)
+ which have been validly granted by You or any distributor hereunder
+ prior to termination shall survive termination.
+
+9. LIMITATION OF LIABILITY.
+
+ UNDER NO CIRCUMSTANCES AND UNDER NO LEGAL THEORY, WHETHER TORT
+ (INCLUDING NEGLIGENCE), CONTRACT, OR OTHERWISE, SHALL YOU, THE INITIAL
+ DEVELOPER, ANY OTHER CONTRIBUTOR, OR ANY DISTRIBUTOR OF COVERED CODE,
+ OR ANY SUPPLIER OF ANY OF SUCH PARTIES, BE LIABLE TO ANY PERSON FOR
+ ANY INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY
+ CHARACTER INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF GOODWILL,
+ WORK STOPPAGE, COMPUTER FAILURE OR MALFUNCTION, OR ANY AND ALL OTHER
+ COMMERCIAL DAMAGES OR LOSSES, EVEN IF SUCH PARTY SHALL HAVE BEEN
+ INFORMED OF THE POSSIBILITY OF SUCH DAMAGES. THIS LIMITATION OF
+ LIABILITY SHALL NOT APPLY TO LIABILITY FOR DEATH OR PERSONAL INJURY
+ RESULTING FROM SUCH PARTY'S NEGLIGENCE TO THE EXTENT APPLICABLE LAW
+ PROHIBITS SUCH LIMITATION. SOME JURISDICTIONS DO NOT ALLOW THE
+ EXCLUSION OR LIMITATION OF INCIDENTAL OR CONSEQUENTIAL DAMAGES, SO
+ THIS EXCLUSION AND LIMITATION MAY NOT APPLY TO YOU.
+
+10. U.S. GOVERNMENT END USERS.
+
+ The Covered Code is a "commercial item," as that term is defined in
+ 48 C.F.R. 2.101 (Oct. 1995), consisting of "commercial computer
+ software" and "commercial computer software documentation," as such
+ terms are used in 48 C.F.R. 12.212 (Sept. 1995). Consistent with 48
+ C.F.R. 12.212 and 48 C.F.R. 227.7202-1 through 227.7202-4 (June 1995),
+ all U.S. Government End Users acquire Covered Code with only those
+ rights set forth herein.
+
+11. MISCELLANEOUS.
+
+ This License represents the complete agreement concerning subject
+ matter hereof. If any provision of this License is held to be
+ unenforceable, such provision shall be reformed only to the extent
+ necessary to make it enforceable. This License shall be governed by
+ California law provisions (except to the extent applicable law, if
+ any, provides otherwise), excluding its conflict-of-law provisions.
+ With respect to disputes in which at least one party is a citizen of,
+ or an entity chartered or registered to do business in the United
+ States of America, any litigation relating to this License shall be
+ subject to the jurisdiction of the Federal Courts of the Northern
+ District of California, with venue lying in Santa Clara County,
+ California, with the losing party responsible for costs, including
+ without limitation, court costs and reasonable attorneys' fees and
+ expenses. The application of the United Nations Convention on
+ Contracts for the International Sale of Goods is expressly excluded.
+ Any law or regulation which provides that the language of a contract
+ shall be construed against the drafter shall not apply to this
+ License.
+
+12. RESPONSIBILITY FOR CLAIMS.
+
+ As between Initial Developer and the Contributors, each party is
+ responsible for claims and damages arising, directly or indirectly,
+ out of its utilization of rights under this License and You agree to
+ work with Initial Developer and Contributors to distribute such
+ responsibility on an equitable basis. Nothing herein is intended or
+ shall be deemed to constitute any admission of liability.
+
+13. MULTIPLE-LICENSED CODE.
+
+ Initial Developer may designate portions of the Covered Code as
+ "Multiple-Licensed". "Multiple-Licensed" means that the Initial
+ Developer permits you to utilize portions of the Covered Code under
+ Your choice of the NPL or the alternative licenses, if any, specified
+ by the Initial Developer in the file described in Exhibit A.
+
+EXHIBIT A -Mozilla Public License.
+
+ ``The contents of this file are subject to the Mozilla Public License
+ Version 1.1 (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.mozilla.org/MPL/
+
+ Software distributed under the License is distributed on an "AS IS"
+ basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
+ License for the specific language governing rights and limitations
+ under the License.
+
+ The Original Code is ______________________________________.
+
+ The Initial Developer of the Original Code is ________________________.
+ Portions created by ______________________ are Copyright (C) ______
+ _______________________. All Rights Reserved.
+
+ Contributor(s): ______________________________________.
+
+ Alternatively, the contents of this file may be used under the terms
+ of the _____ license (the "[___] License"), in which case the
+ provisions of [______] License are applicable instead of those
+ above. If you wish to allow use of your version of this file only
+ under the terms of the [____] License and not to allow others to use
+ your version of this file under the MPL, indicate your decision by
+ deleting the provisions above and replace them with the notice and
+ other provisions required by the [___] License. If you do not delete
+ the provisions above, a recipient may use your version of this file
+ under either the MPL or the [___] License."
+
+ [NOTE: The text of this Exhibit A may differ slightly from the text of
+ the notices in the Source Code files of the Original Code. You should
+ use the text of this Exhibit A rather than the text found in the
+ Original Code Source Code for Your Modifications.]
+
+
+
+ GNU LESSER GENERAL PUBLIC LICENSE
+ Version 3, 29 June 2007
\ No newline at end of file
diff --git a/build/Readme.md b/build/Readme.md
new file mode 100644
index 00000000..693d6643
--- /dev/null
+++ b/build/Readme.md
@@ -0,0 +1,104 @@
+Ace (Ajax.org Cloud9 Editor)
+============================
+
+Ace is a standalone code editor written in JavaScript. Our goal is to create a web based code editor that matches and extends the features, usability and performance of existing native editors such as TextMate, Vim or Eclipse. It can be easily embedded in any web page and JavaScript application. Ace is developed as the primary editor for [Cloud9 IDE](http://www.cloud9ide.com/) and the successor of the Mozilla Skywriter (Bespin) Project.
+
+Features
+--------
+
+* Syntax highlighting
+* Auto indentation and outdent
+* An optional command line
+* Work with huge documents (100,000 lines and more 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
+
+Take Ace for a spin!
+--------------------
+
+Check out the Ace live [demo](http://ajaxorg.github.com/ace/build/editor.html) or get a [Cloud9 IDE account](http://run.cloud9ide.com) to experience Ace while editing one of your own GitHub projects.
+
+If you want, you can use Ace as a textarea replacement thanks to the [Ace Bookmarklet](http://ajaxorg.github.com/ace/build/textarea/editor.html).
+
+History
+-------
+
+Previously known as “Bespin” or lately “Skywriter” it’s now known as Ace (Ajax.org Cloud9 Editor)! Bespin and Ace started 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 the Cloud9 IDE and is using 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 version of Skywriter's plugin system and some of Skywriter's extensibility points. All these changes have been merged back to Ace now, which supersedes Skywriter. Both Ajax.org and Mozilla are actively developing and maintaining Ace.
+
+Getting the code
+----------------
+
+Ace is a community project. We actively encourage and support contributions. The Ace source code is hosted on GitHub. It is released under the Mozilla tri-license (MPL/GPL/LGPL). This is the same license used by Firefox. This license is 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
+ git submodule update --init --recursive
+
+Embedding Ace
+-------------
+
+Ace can be easily embedded into any existing web page. The Ace git repository ships with a pre-packaged version of Ace inside of the `build` directory. The same packaged files are also available as a separate [download](https://github.com/ajaxorg/ace/downloads). Simply copy the contents of the `src` subdirectory somewhere into your project and take a look at the included demos of how to use Ace.
+
+The easiest version is simply:
+
+ some text
+
+
+
+To change the theme simply include the Theme's JavaScript file
+
+
+
+and configure the editor to use the theme:
+
+ editor.setTheme("ace/theme/twilight");
+
+By default the editor only supports plain text mode. However all other language modes are available as separate modules. After including the mode's Javascript file
+
+
+
+the mode can be used like this:
+
+ var JavaScriptMode = require("ace/mode/javascript").Mode;
+ editor.getSession().setMode(new JavaScriptMode());
+
+Running Ace
+-----------
+
+After the checkout Ace works out of the box. No build step is required. Simply open 'editor.html' in any browser except Google Chrome. Google Chrome doesn't allow XMLHTTPRequests from files loaded from disc (i.e. with a file:/// URL). To open the Ace in Chrome simply start the bundled mini HTTP server:
+
+ ./static.py
+
+The editor can then be opened at http://localhost:9999/editor.html.
+
+Package Ace
+-----------
+
+To package Ace we use the dryice build tool developed by the Mozilla Skywriter team. To install dryice and all its dependencies simply call:
+
+ npm link .
+
+Afterwards Ace can by build by calling
+
+ ./Makefile.dryice.js
+
+The packaged Ace will be put in the 'build' folder.
+
+Running the Unit Tests
+----------------------
+
+The Ace unit tests run on node.js. Before the first run a couple of node mudules have to be installed. The easiest way to do this is by using the node package manager (npm). In the Ace base directory simply call
+
+ npm link .
+
+To run the tests call:
+
+ node lib/ace/test/all.js
+
diff --git a/demo/requirejs+build.html b/build/editor.html
similarity index 50%
rename from demo/requirejs+build.html
rename to build/editor.html
index 72d50dbc..8f8a7895 100644
--- a/demo/requirejs+build.html
+++ b/build/editor.html
@@ -8,8 +8,8 @@
body {
overflow: hidden;
}
-
- #editor {
+
+ #editor {
margin: 0;
position: absolute;
top: 0;
@@ -27,22 +27,18 @@
alert("Ace Rocks " + items[i]);
}
}
-
-
+
+
+
+