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
400 B

12 months ago
  1. var ace = require('../..');
  2. require('../../mode/javascript');
  3. require('../../theme/monokai');
  4. var editor = ace.edit('javascript-editor');
  5. editor.getSession().setMode('ace/mode/javascript');
  6. editor.setTheme('ace/theme/monokai');
  7. editor.setValue([
  8. '// JavaScript'
  9. , 'var a = 3;'
  10. , ''
  11. , '// below line has an error which is annotated'
  12. , 'var b ='
  13. ].join('\n')
  14. );
  15. editor.clearSelection();