Multiple languages in one file [message #759817] |
Wed, 30 November 2011 08:16 |
Vlad Dumitrescu Messages: 431 Registered: July 2009 Location: Gothenburg |
Senior Member |
|
|
Hi!
I couldn't find any example about this, but it feels it should be possible to do.
The Java editor has highlighting and completion for JavaDocs, which is a different language than Java itself. How can I implement that with Xtext?
The regular way is to use partitions and register scanners and other handlers for each partition. I suppose I have to do that now by fiddling with the bindXXX methods in my Utilities class, but I don't see how to mix in different languages - should they be separate grammars, or should I mix in all of them in a big one? Where do I look?
best regards,
Vlad
[Updated on: Wed, 30 November 2011 08:17] Report message to a moderator
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03321 seconds