How to highlight multiple lines in an AbstractTextEditor? [message #1455708] |
Wed, 29 October 2014 17:20 |
Philipp Kehrbusch Messages: 2 Registered: October 2014 |
Junior Member |
|
|
I am trying to highlight multiple lines in an AbstractTextEditor and already tried using
Code: [Select all] [Show/ hide]
itexteditor.sethighlightRange(offset, length, moveCursor)
. The range is set correctly (I checked it using
Code: [Select all] [Show/ hide]
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?
|
|
|
Powered by
FUDForum. Page generated in 0.02774 seconds