Manipulating the editor
The editor implements IControl, so it has the usual assortment of methods and bindings for enable/disable, readonly etc.
In addition the following methods are implemented:
|setTabSize(int)||Sets the tab size (defaults to 4)|
|gotoLine(int [, col])||Moves the caret to the specified 1-based line and column|
|select(line1, col1, line2, col2)||Select the text from line1,col1 to line2,col2|
The editor supports code completion. To make this work you need to create a method which, depending on the text position and context, returns a list of AceEditor.Completion instances. The method will be called when the user presses CTRL+Spacebar in the editor, and the editor will allow the user to pick one of the values which will then be inserted.