How to highlight with markers based on absolute start and end positions? #4821
Answered
by
nightwing
smarajitdasgupta
asked this question in
Q&A
|
is there a way to supply Ace editor marker absolute character positions of the substring / code to highlight instead of row, cols? |
Answered by
nightwing
Jul 12, 2022
Replies: 1 comment
|
You can use |
0 replies
Answer selected by
andrewnester
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use
editor.session.doc.indexToPosition(80)method to convert from character number to row col, and use that for highlighting afterwards.