Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsKeyword Highlighting In A Standalone Application?
https://www.eclipse.org/forums/index.php/mv/msg/1083566/1751238/#msg_1751238
]]>Sam Patterson2017-01-06T04:34:44-00:00Re: Keyword Highlighting In A Standalone Application?
https://www.eclipse.org/forums/index.php/mv/msg/1083566/1751241/#msg_1751241
yes, with the upcoming Xtext 2.11 (Jan 24th) we support the Language Server Protocol. With that you can use your DSL runtime as a language server and get coloring information from it. For you particulary the Document Highlight request is interesting: https://github.com/Microsoft/language-server-protocol/blob/master/protocol.md#textDocument_documentHighlight
A beta for 2.11 is already available on the milestone repository.
Your job would be to implement the client side of the LSP and embed a language server (which is mainly starting org.eclipse.xtext.ide.server.ServerLauncher and connecting it to your app).
HTH,
~Karsten]]>Karsten Thoms2017-01-06T08:00:03-00:00Re: Keyword Highlighting In A Standalone Application?
https://www.eclipse.org/forums/index.php/mv/msg/1083566/1751242/#msg_1751242
However, we have built an extension to the LSP for semantic coloring, which you could use. For just coloring keywords this seems to be a bit overkill, though.
Do you plan to support more editing features in your standalone app? What technology is it written in?
Cheers,
Sven]]>Sven Efftinge2017-01-06T08:18:29-00:00Re: Keyword Highlighting In A Standalone Application?
https://www.eclipse.org/forums/index.php/mv/msg/1083566/1751304/#msg_1751304
Sam Patterson2017-01-07T12:32:35-00:00Re: Keyword Highlighting In A Standalone Application?
https://www.eclipse.org/forums/index.php/mv/msg/1083566/1751343/#msg_1751343
Karsten Thoms2017-01-09T08:07:51-00:00