How to declare external identifiers? #5820
Unanswered
Entomologen
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I've googled for others with the same issue. And I tries searching your Q/A here. I have to say, I could not find a single one, sharing my concerns. I can't believe I am the only one wanting to do this.
Add globals to an editor
I use Ace mainly to show and edit javascript or lua, where my scripts are supposed to run inside a context environment. Most of my javascripts, for example, make use of jQuery. The jQuery library is included with the environment. So it doesn't show in the editor. As a result, I get a warning ('$' is not defined) every time i use it.
Now, this must be a common issue for most Ace workers, So, my question is: How do I add such identifiers to the editor? I'm guessing there is a method (e.g. editor.addGlobals(struct)). But I haven't been able to find it.
Beta Was this translation helpful? Give feedback.
All reactions