diff --git a/index.js b/index.js index 373f778..a960a45 100644 --- a/index.js +++ b/index.js @@ -34,6 +34,12 @@ module.exports = { value:function (val) { if(this.contentBackup !== val) this.editor.setValue(val,1); + }, + theme:function (newTheme) { + this.editor.setTheme('ace/theme/'+newTheme); + }, + lang:function (newLang) { + this.editor.getSession().setMode('ace/mode/'+newLang); } }, mounted: function () {