AceEditor

Wisej.Web.Ext.AceEditor.AceEditor

Namespace: Wisej.Web.Ext.AceEditor

Assembly: Wisej.Web.Ext.AceEditor (3.2.0.0)

Integrates the AceEditor (https://ace.c9.io/) widget.

public class AceEditor : Widget

Ace is an embeddable code editor written in JavaScript. It matches the features and performance of native editors such as Sublime, Vim and TextMate.

Constructors

AceEditor()

Initializes a new instance of AceEditor.

Properties

AutoUpdateDelay

Int32: Sets the amount of in time in milliseconds to wait before updating the server that the content of the editor has changed while the user is typing. A value of 0 disables it. (Default: 1000)

DisplayIndentGuides

Boolean: Shows or hides the indent guides. (Default: True)

FontSize

Nullable<Single>: Returns or sets the FontSize. (Default: null)

InitScript

String: Overridden to create our initialization script.

Language

String: Returns or sets the language. (Default: "")

Options

Object: Returns or sets the options to use for this instance of the AceEditor.

Packages

List<Package>: Overridden to return our list of script resources.

PrintMarginColumn

Int32: Returns or sets the print margin column position. (Default: 80)

ReadOnly

Boolean: If readOnly is true, then the editor is set to read-only mode, and none of the content can change. (Default: False)

ShowGutter

Boolean: Shows or hides the gutter. (Default: True)

ShowLineNumbers

Boolean: Shows or hides the line numbers in the gutter. (Default: True)

ShowPrintMargin

Boolean: Shows or hides the print margin. (Default: True)

Text

String: Returns or sets the text displayed in the editor. (Default: "")

Theme

String: Returns or sets the theme. (Default: "")

Methods

Redo()

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

Undo()

Performs an undo operation on the document, reverting the last change.

Last updated

Was this helpful?