Closed Alxdhere closed 10 years ago
According to the documentation, the way to set up Mode is:
editor.getSession().setMode("ace/mode/javascript"); // or var JavaScriptMode = require("ace/mode/javascript").Mode; editor.getSession().setMode(new JavaScriptMode());
Can you explain the case where is an array?
Hi! I found this topic: https://github.com/ajaxorg/ace/issues/1142 setMode can accept array, for example: {path:"ace/mode/php", inline:true} I use it right now :)
@Alxdhere Thanks!
According to the documentation, the way to set up Mode is:
Can you explain the case where is an array?