AceGWT icon indicating copy to clipboard operation
AceGWT copied to clipboard

Creating workers

Open smorad opened this issue 12 years ago • 3 comments

Hi Dave, do you know if there is any way to create workers? I'm trying to get syntax checking to work. Thanks!

smorad avatar Jul 09 '12 17:07 smorad

Can you point me to some documentation to how the underlying javascript API works?

daveho avatar Jul 11 '12 17:07 daveho

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!

smorad avatar Jul 11 '12 18:07 smorad

On line 102 of AceEditor.java, does AceGWT not explicitly disable workers? That would be why JSLint doesn't work

L0g1k avatar Nov 27 '12 01:11 L0g1k