You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

16 lines
380 B

var ace = require('../..');
require('../../mode/json');
require('../../theme/solarized_light');
var editor = ace.edit('json-editor');
editor.getSession().setMode('ace/mode/json');
editor.setTheme('ace/theme/solarized_light');
editor.setValue([
'{'
, ' "language": "JSON",'
, ' "foo": "bar",'
, ' "trailing": "comma",'
, '}'
].join('\n')
);
editor.clearSelection();