AceGWT
AceGWT copied to clipboard
Creating workers
Hi Dave, do you know if there is any way to create workers? I'm trying to get syntax checking to work. Thanks!
Can you point me to some documentation to how the underlying javascript API works?
It looks like Ace uses JSLint (for javascript mode anyways). It looks like its implemented at about line 130 in the mode-javascript.js file. According to:
http://www.jarvana.com/jarvana/view/com/googlecode/jslint4java/jslint4java/1.3.3/jslint4java-1.3.3-javadoc.jar!/com/googlecode/jslint4java/JSLint.html
it looks as if you can use the lint method on a JSLint object to get a list of errors by passing it the String from editor.getText() and a filename.
If this was not what you were asking for, please let me know!
On line 102 of AceEditor.java, does AceGWT not explicitly disable workers? That would be why JSLint doesn't work