Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [xtext-dev] Syntax coloring

Hi Jos,

the default highlighting is no longer configured with Xtend. You'll have to implement it in Java instead.
Please have a look at org.eclipse.xtext.ui.common.editor.syntaxcoloring.ILexicalHighlightingConfiguration
and org.eclipse.xtext.ui.common.editor.syntaxcoloring.antlr.DefaultAntlrTokenToAttributeIdMapper. They are a good starting point for customizing the lexical highlighting. 


Regards,
Sebastian
--
Sebastian Zarnekow

mobile: +49 (0) 151 / 1739 6724
phone:  +49 (0) 431 / 5606-338
fax:   +49 (0) 431 / 5606-339


itemis AG
Schauenburgerstraße 116
24118 Kiel
Germany

Rechtlicher Hinweis:
Amtsgericht Dortmund, HRB 20621
Vorstand: Wolfgang Neuhaus, Jens Wagner, Dr. Georg Pietrek
Aufsichtsrat: Prof. Dr. Burkhard Igel (Vors.), Stephan Grollmann, Michael Neuhaus

On 26.06.2009, at 10:20, Warmer, Jos wrote:

Hi,
 
We use different colors for keywords in different DSLs.  In oAW Xtext it was possible to define the default syntax coloring through an Xtend function.
I have not found a way to change the default syntax coloring in TMF Xtext,  is this possible and if so, where should I put the default values?
 
I have seen that there is a preferences page where the use can set the coloring, but we view the coloring as part of the DSL definition.
Therefore a preferences page doesn’t work for us.
 

Regards

Jos Warmer
Partner

Ordina Application Outsourcing en Projecten B.V.
Centre of Excellence
 
 
 
 

Disclaimer
Dit bericht met eventuele bijlagen is vertrouwelijk en uitsluitend bestemd voor de geadresseerde. Indien u niet de bedoelde ontvanger bent, wordt u verzocht de afzender te waarschuwen en dit bericht met eventuele bijlagen direct te verwijderen en/of te vernietigen. Het is niet toegestaan dit bericht en eventuele bijlagen te vermenigvuldigen, door te sturen, openbaar te maken, op te slaan of op andere wijze te gebruiken. Ordina N.V. en/of haar groepsmaatschappijen accepteren geen verantwoordelijkheid of aansprakelijkheid voor schade die voortvloeit uit de inhoud en/of de verzending van dit bericht.

This e-mail and any attachments are confidential and are solely intended for the addressee. If you are not the intended recipient, please notify the sender and delete and/or destroy this message and any attachments immediately. It is prohibited to copy, to distribute, to disclose or to use this e-mail and any attachments in any other way. Ordina N.V. and/or its group companies do not accept any responsibility nor liability for any damage resulting from the content of and/or the transmission of this message. _______________________________________________
xtext-dev mailing list
xtext-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/xtext-dev


Back to the top