Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » How do I highlight multiple lines in an AbstractTextEditor?
How do I highlight multiple lines in an AbstractTextEditor? [message #1454668] Tue, 28 October 2014 16:44 Go to next message
Philipp Kehrbusch is currently offline Philipp KehrbuschFriend
Messages: 1
Registered: October 2014
Junior Member
I am trying to highlight multiple lines in an AbstractTextEditor and already tried using
ITextEditor.setHighlightRange(offset, length, moveCursor)
. The range is set correctly (I checked it using
ITextEditor.getHighlightRange()
) and the cursor is moved to the beginning of this range as expected. However, the only highlighting I get is due to the cursor position. This means, the whole line in which the cursor is in gets highlighted, but nothing else no matter what I set the range to.

Am I doing something wrong or is this the expected behaviour?
Re: How do I highlight multiple lines in an AbstractTextEditor? [message #1455517 is a reply to message #1454668] Wed, 29 October 2014 12:58 Go to previous messageGo to next message
Eric Rizzo is currently offline Eric RizzoFriend
Messages: 3070
Registered: July 2009
Senior Member
You might get more response in the Eclipse Platform forum or the RCP forum.
Re: How do I highlight multiple lines in an AbstractTextEditor? [message #1455704 is a reply to message #1455517] Wed, 29 October 2014 17:14 Go to previous message
Philipp Kehrbusch is currently offline Philipp KehrbuschFriend
Messages: 2
Registered: October 2014
Junior Member
I think I did actually post there first but it was moved... I'll try again Smile
Previous Topic:Larger font size option for right side panel
Next Topic:Example Code for Web Pages
Goto Forum:
  


Current Time: Thu Apr 25 23:52:07 GMT 2024

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

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

Back to the top