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.

17 lines
407 B

12 months ago
  1. var ace = require('brace');
  2. require('brace/mode/lua');
  3. require('brace/theme/solarized_dark');
  4. var editor = ace.edit('lua-editor');
  5. editor.setTheme('ace/theme/solarized_dark');
  6. editor.getSession().setMode('ace/mode/lua');
  7. editor.setValue([
  8. '--- Lua'
  9. , 'for i = 5, 11, 0.5 do'
  10. , ' print(i)'
  11. , 'end'
  12. , '--- error below should be marked'
  13. , 'for i ='
  14. ].join('\n')
  15. );
  16. editor.clearSelection();