Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Syntax Highlighting for One Particular keyword(Syntax Highlighting for One Particular keyword)
Syntax Highlighting for One Particular keyword [message #1729936] Wed, 20 April 2016 11:07 Go to next message
RamaRao Nandamuri is currently offline RamaRao NandamuriFriend
Messages: 120
Registered: April 2016
Senior Member

I have a parser rule:

HashCode: '#' ID

I want to write a syntax like #test

But I don't know '#' not highlighted why?

I want to show it in green color as comment but I don't want it in terminal SL_COMMENT. what should I do?
Re: Syntax Highlighting for One Particular keyword [message #1729941 is a reply to message #1729936] Wed, 20 April 2016 12:01 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13607
Registered: July 2009
Senior Member
have a look at DefaultAntlrTokenToAttributeIdMapper

Need professional support for Xtext, Xpand, EMF?
Go to:
Twitter : @chrdietrich
Blog :
Previous Topic:Xtext dynamic content assist without typing ctrl+space
Next Topic:How to add underline to my textStyle
Goto Forum:

Current Time: Fri Sep 25 09:29:02 GMT 2020

Powered by FUDForum. Page generated in 0.01359 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top