Rounded Editor Options

I implemented the setup of the Ace editor for PHP (which works fine), but when I try to set additional parameters using the Ace API, I get warnings in the console.

Here is the code that was used to start the editor and tried to set the parameters;

ace.require("ace/ext/language_tools"); ace.require("ace/ext/emmet"); // PHP var phpeditor = ace.edit("php_inc"); phpeditor.setTheme("ace/theme/dreamweaver"); phpeditor.getSession().setMode("ace/mode/php"); phpeditor.setOptions({ enableSnippets: true, enableLiveAutoComplete: true, enableBasicAutocompletion: true, showPrintMargin: settings.showPrintMargin, useSoftTabs: false, fontSize: settings.fontSize, showInvisibles: settings.showInvisibles, behavioursEnabled: settings.behavioursEnabled, tabSize: settings.tabSize, useWrapMode: settings.useWrapMode, useWorker: settings.useWorker, setHighlightActiveLine: false, enableEmmet: true }); 

And here are the console warnings that I get:

 misspelled option "enableSnippets" ace.js?ver=3.9.1:5207 misspelled option "enableLiveAutoComplete" ace.js?ver=3.9.1:5207 misspelled option "enableBasicAutocompletion" ace.js?ver=3.9.1:5207 misspelled option "setHighlightActiveLine" ace.js?ver=3.9.1:5207 misspelled option "enableEmmet" ace.js?ver=3.9.1:5207 

Any help would be greatly appreciated.

+6
source share
1 answer

you can view a list of all available options by running Object.keys(editor.$options)

+14
source

Source: https://habr.com/ru/post/971966/


All Articles