Help getting started with custom language plugin

I am trying to get my head around plugin development in general and custom language plugin in particular.

I am looking here: http://confluence.jetbrains.net/display/IDEADEV/Developing+Custom+Language+Plugins+for+IntelliJ+IDEA

but a couple of weeks ago I remember reading an almost verbatim page but one that also included links to some example code, a javascript plugin as I remember. I can't seem to find that page back, does it or something similar still exits?

I also would like to see a JavaDoc or similar API documentation for the relevant APIs. Can someone point me to this, I can't seem to find it.

And finally, what I really want to do is start with implementing basic syntax highlighting and leave the more advanced features for later. If there are any tips for a getting a minimal start like that they would be greatly appreciated.

5 comments
Comment actions Permalink

Hello Byron,

The JavaScript plugin is now part of IntelliJ IDEA Ultimate, and its source
code is no longer available, so it can no longer be used as example code.
Now you can refer to the Clojure plugin as the simplest open-source JetBrains-developed
custom language plugin:
http://git.jetbrains.org/?p=idea/clojure-plugin.git;a=summary

For documentation, the best option is to get the source code of IntelliJ
IDEA Community Edition and to refer to comments in its code. You can build
JavaDocs out of that by yourself if you really need to have the documentation
in HTML, but referring to the source is usually the better option.

To get the syntax highlighting working, you can simply follow the provided
document up to and including the "Implementing a Lexer" part. If you have
more specific questions, feel free to ask them here.

I am trying to get my head around plugin development in general and
custom language plugin in particular.

I am looking here:
http://confluence.jetbrains.net/display/IDEADEV/DevelopingCustomLang
uagePluginsforIntelliJIDEA

but a couple of weeks ago I remember reading an almost verbatim page
but one that also included links to some example code, a javascript
plugin as I remember. I can't seem to find that page back, does it or
something similar still exits?

I also would like to see a JavaDoc or similar API documentation for
the relevant APIs. Can someone point me to this, I can't seem to find
it.

And finally, what I really want to do is start with implementing basic
syntax highlighting and leave the more advanced features for later. If
there are any tips for a getting a minimal start like that they would
be greatly appreciated.

---
Original message URL:
http://www.jetbrains.net/devnet/message/5265381#5265381

--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Comment actions Permalink

The JavaScript plugin is now part of IntelliJ IDEA Ultimate, and its source
code is no longer available, so it can no longer be used as example code.


Nice info. You should update the FAQ at http://confluence.jetbrains.net/display/IDEADEV/Plugin+Development+FAQ "How do I compile the JavaScript plugin?". I searched half an hour for it, yesterday. :-(

0
Comment actions Permalink

Hello Timo,

The JavaScript plugin is
> now part of IntelliJ IDEA Ultimate, and its source
>
> code is no longer available, so it can no longer be used as example
> code.


Nice info. You should update the FAQ at
http://confluence.jetbrains.net/display/IDEADEV/PluginDevelopmentFAQ
"http://intellij.net/forums/thread.jspa?threadID=149772". I searched
half an hour for it, yesterday. :(


Updated. Sorry for the confusion.

--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Comment actions Permalink

The link to the web forums gives a 404.  http://devnet.jetbrains.net/forum.jsp?forum=23 what is the correct forum for discussing new language plugins?

0
Comment actions Permalink

This forum (http://devnet.jetbrains.net/community/idea/open_api_and_plugin_development) is where most people discuss plugin implementation, including language plugins.

0

Please sign in to leave a comment.