--- title: Ace Editor layout: nested-component.html github: components/ace-editor/ace-editor.html ---

Ace-editor Ace-editor

We do not support setting options besides the language on a per-instance basis as this plugin is fairly complex to manage. The editor component is initialized by .ace-editor classname.
NOTE: If data-language attribute isn't set, the component will default to JSON.

Ace-editor default

{ "foo": { "bar": 1, "baz": "1234" "array": [1,2,3,4], invalid: json } }

Loading...

NYI

Ace-editor langauge example

function add(x, y) { var resultString = "Hello, ACE! The result of your math is: "; var result = x + y; return resultString + result; } var addResult = add(3, 2); console.log(addResult);

Loading...

NYI