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

12 months ago
  1. var ace = require('../..');
  2. require('../../mode/xml');
  3. require('../../theme/tomorrow_night_bright');
  4. var editor = ace.edit('xml-editor');
  5. editor.getSession().setMode('ace/mode/xml');
  6. editor.setTheme('ace/theme/tomorrow_night_bright');
  7. editor.setValue([
  8. '<root>'
  9. , ' <some>content</some>'
  10. , ' <with an="attribute"></with>'
  11. , ' <invalid>tagname<>'
  12. , '</root>'
  13. ].join('\n')
  14. );
  15. editor.clearSelection();