For example, I have text in ace-editor and a list of ranges of lines and lines in the text where the selections should be displayed. Like this (they are shown in bold):
Lorem ipsum dolor sit amet , consectetuer adipiscing elit. Nam cursus. Morbi ut mi. Nullam enim leo, egestas id, condimentum at, laoreet mattis, Massa. Sed eleifend nonummy diam. Praesent mauris ante, elementum et, bibendum at, posuere sit amet, nibh.
How to highlight these words using the Ace-Editor API?
How to select multiple lines?
megas
source share