Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creating workers #4

Open
smorad opened this issue Jul 9, 2012 · 3 comments
Open

Creating workers #4

smorad opened this issue Jul 9, 2012 · 3 comments

Comments

@smorad
Copy link

smorad commented Jul 9, 2012

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

@daveho
Copy link
Owner

daveho commented Jul 11, 2012

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

@smorad
Copy link
Author

smorad commented Jul 11, 2012

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!

@L0g1k
Copy link

L0g1k commented Nov 27, 2012

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants