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
17 lines
407 B
var ace = require('../..');
|
|
require('../../mode/lua');
|
|
require('../../theme/solarized_dark');
|
|
|
|
var editor = ace.edit('lua-editor');
|
|
editor.setTheme('ace/theme/solarized_dark');
|
|
editor.getSession().setMode('ace/mode/lua');
|
|
editor.setValue([
|
|
'--- Lua'
|
|
, 'for i = 5, 11, 0.5 do'
|
|
, ' print(i)'
|
|
, 'end'
|
|
, '--- error below should be marked'
|
|
, 'for i ='
|
|
].join('\n')
|
|
);
|
|
editor.clearSelection();
|