|
|
@ -5,6 +5,8 @@ var yo = require('yo-yo') |
|
|
|
var csjs = require('csjs-inject') |
|
|
|
var csjs = require('csjs-inject') |
|
|
|
var ace = require('brace') |
|
|
|
var ace = require('brace') |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
require('brace/theme/tomorrow_night_blue') |
|
|
|
|
|
|
|
|
|
|
|
var Range = ace.acequire('ace/range').Range |
|
|
|
var Range = ace.acequire('ace/range').Range |
|
|
|
require('brace/ext/language_tools') |
|
|
|
require('brace/ext/language_tools') |
|
|
|
require('brace/ext/searchbox') |
|
|
|
require('brace/ext/searchbox') |
|
|
@ -68,7 +70,6 @@ function Editor (opts = {}) { |
|
|
|
if (styles.appProperties.aceTheme) { |
|
|
|
if (styles.appProperties.aceTheme) { |
|
|
|
editor.setTheme('ace/theme/' + styles.appProperties.aceTheme) |
|
|
|
editor.setTheme('ace/theme/' + styles.appProperties.aceTheme) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
ace.acequire('ace/ext/language_tools') |
|
|
|
ace.acequire('ace/ext/language_tools') |
|
|
|
editor.setOptions({ |
|
|
|
editor.setOptions({ |
|
|
|
enableBasicAutocompletion: true, |
|
|
|
enableBasicAutocompletion: true, |
|
|
|