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

10 months ago
  1. var ace = require('../..');
  2. require('../../mode/coffee');
  3. require('../../theme/vibrant_ink');
  4. var editor = ace.edit('coffee-editor');
  5. editor.setTheme('ace/theme/vibrant_ink');
  6. editor.getSession().setMode('ace/mode/coffee');
  7. editor.setValue([
  8. '# Coffee'
  9. , 'square = (x) -> x * x'
  10. , ''
  11. , '# below line has an error which is annotated'
  12. , 'square = x -> x * '
  13. ].join('\n')
  14. );
  15. editor.clearSelection();