how to extend javascript plugin for supporting injected language
Hi folk,
I need to extend existing javascript plugin to support injected language. My use case is
var v = foo("blablabla")
the "blablabla" is the text of an injected langauge. I want to extend javascript plugin to provide code completion and quick navigation for the injected language.
1. Whether is this doable?
2. Any suggestion on how to do it?
I'm using plugin api of 9.0.4 Ultermate version.
Many thanks for any suggestion and help,
Ning
Please sign in to leave a comment.
I searched the old posts and found some of them mentioned javascript plugin source code, but I cannot find it in the community version. Any idea how to get the javascript plugin source code?
Many Thanks,
Ning
Hello Ning,
The JavaScript plugin is no longer open-source; its source code is not available.
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
Hello Ning,
The JavaScript string literal supports the language injection host API. You
need to provide an implementation of the LanguageInjector interface and inject
your language into JSLiteralExpression elements.
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
That's too bad. This might affect whether we can to choose intellij community version as the default IDE for our customers. I personally prefer intellij over eclipse, but without javascript plugin for community version, it seems the eclipse is the only choice. Another question, can we license the javascript plugin source code? We want to release it for only being used by our customers for free. If yes, what the cost will be? You can send the answer to my email if you want.
Thanks,
Ning
Hello Ning,
Please send me an e-mail at yole@jetbrains.com describing your project in
more detail.
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"