Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Programatically modify part of Editor's background color(How to programatically modify a part of the Editor's background color)
Programatically modify part of Editor's background color [message #1771641] Tue, 29 August 2017 06:15 Go to next message
Anitha Mising name is currently offline Anitha Mising nameFriend
Messages: 28
Registered: February 2010
Junior Member
I have a language editor that i have developed using XText grammar. Now i want this Editor to grey out (background color to grey) the first 10 characters in a line.

Is this possible in Xtext? If yes, how can i approach this issue?
Re: Programatically modify part of Editor's background color [message #1771645 is a reply to message #1771641] Tue, 29 August 2017 06:49 Go to previous message
Karsten Thoms is currently offline Karsten ThomsFriend
Messages: 762
Registered: July 2009
Location: Dortmund, Germany
Senior Member

As a starting point see Semantic Highlighting section in https://eclipse.org/Xtext/documentation/310_eclipse_support.html#highlighting

You would have to traverse the node model, identify line beginnings and accept hightlighted ranges.
Previous Topic:ecore model location
Next Topic:Xtext plugin gives a null pointer exception in Eclipse IDEs for java developers
Goto Forum:
  


Current Time: Thu Apr 25 15:35:00 GMT 2024

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

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

Back to the top