Custom language using IntelliJ as an IDE
Hi,
I just come from MPS forum with a question for you IntelliJ plugin gurus :-)
Say I have a textual language L and I want an IDE for this language.
Of course, I want IntelliJ but how can I add colour syntaxing, typing aids, ... all the power of IntelliJ for my custom language ?
I found this 2 links for Eclipse and Netbeans :
http://www.eclipse.org/Xtext/
http://wiki.netbeans.org/Schliemann
So, basically, Is there something like that for IntelliJ ?
MPS is not the answer since it doesn't take text file into account yet and I don't want to work with AST nodes : only text files.
Ideally, I would give my language's grammar as a configuration file and I'll get a powerful IntelliJ editor for my language.
But in real life, what do you advice me to look for ?
Thanks !
Please sign in to leave a comment.
Hello Jean-Baptiste,
Unfortunately developing a custom language plugin for IntelliJ IDEA involves
far more work than simply giving a grammar file. However, it's definitely
doable, and there are plenty of third-party custom language plugins for IntelliJ
IDEA.
Please see http://confluence.jetbrains.net/display/IDEADEV/DevelopingCustomLanguagePluginsforIntelliJIDEA
for information on how to develop a custom language plugin.
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
Hi,
Thanks for your answer but the link goes to a 404 equivalent :-)
OK, I got it :
http://confluence.jetbrains.net/display/IDEADEV/Developing+Custom+Language+Plugins+for+IntelliJ+IDEA
Will this url be updated http://www.jetbrains.com/idea/plugins/developing_custom_language_plugins.html or is it now obsolete? I have tried to use it as an example, but it is based on verion 5 and parts of the code no-longer compile. Code releated to:
Is there a better example that is included in the opensource version?
Michael
Hello Michael,
The post you're replying to contains an updated version of the same document.
We're moving all the plugin development documentation to Confluence, and
the documents at jetbrains.com are no longer updated. I guess we should remove
them and set up redirects.
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"