Home › Forums › General XMetaL Discussion › How to use HighlightRange to un-highlight › Reply To: How to use HighlightRange to un-highlight
Reply to: How to use HighlightRange to un-highlight
April 20, 2015 at 10:03 amThanks a lot!
Saving the ids of the highlighted region and un-highlighting works using this:
[code]
var highlightId = ActiveDocument.HighlightRange(location, 12, 1);
[…]
ActiveDocument.SetHighlightedRangeState(highlightId, 2);
[/code]
Just one small problem: In the end of the document small part is highlighted (Screenshot attached is made with your sample customization) This occures on changing the view. Is it possible to omit this?