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 Y is currently offline Anitha YFriend
Messages: 22
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: 635
Registered: July 2009
Location: Dortmund, Germany
Senior Member

As a starting point see Semantic Highlighting section in

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: Sat Oct 20 16:41:17 GMT 2018

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

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

Back to the top