Monday, June 3, 2024
 Popular · Latest · Hot · Upcoming
74
rated 0 times [  81] [ 7]  / answers: 1 / hits: 6042  / 10 Years ago, thu, september 18, 2014, 12:00:00

I have trouble getting my annotation to stay. See this jsfiddle: http://jsfiddle.net/c8k45yw1/5/



What you will see is line 2, which I set manually, will have X mark appear for half a second before it disappear. Thoughts?



var editor = ace.edit(editor);
editor.setTheme(ace/theme/chrome);
editor.getSession().setMode(ace/mode/javascript);
//editor.session.setBreakpoint(2);
editor.getSession().setAnnotations([{
row: 1,
column: 0,
text: Strange error,
type: error // also warning and information
}]);

More From » ace-editor

 Answers
0

Syntax checker in ace uses same setAnnotations api, and clears old anotations.
You can disable it with editor.session.setOption(useWorker, false)


[#42431] Wednesday, September 17, 2014, 10 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
coby

Total Points: 27
Total Questions: 102
Total Answers: 97

Location: Honduras
Member since Wed, Jul 14, 2021
3 Years ago
;