Hi there, I´m very new to ace. I have a problem with the autocomplete and snippet feature.
I dont know how to add my own ones. Is there anyone who can help me...
The Problem is, that i want to append my own snippets to the existing snippet i.e. javascript
Here is my code:
function initAce(editorID,syn) {
ace.require("ace/ext/language_tools");
$('#LayoutFileBodyDiv').append('<div id="editor_'+editorID+'"></div>');
aceEditor['editor_'+editorID] = ace.edit('editor_'+editorID);
aceEditor['editor_'+editorID].setTheme("ace/theme/chrome");
aceEditor['editor_'+editorID].getSession().setMode("ace/mode/"+syn);
aceEditor['editor_'+editorID].getSession().setUseSoftTabs(false);
aceEditor['editor_'+editorID].setShowPrintMargin(false);
aceEditor['editor_'+editorID].setOptions({
enableBasicAutocompletion: true,
enableSnippets: true
});
}