Hi Tomas,
I came across this use case. I can make a method for it, but I thought of letting you know in case you think it is worth integrating as a general purpose method.
The method would the range(start and end) of the style at a current position.
steps would something like this:
get the style at the caret position
get the boundaries of the style from the caret position: start range of style (left of caret) and end range of the style (right of caret).
Once I get that range, I can then apply additional styling. not only for that location, but for the whole range of characters to its left and right of it.
Hi Tomas,
I came across this use case. I can make a method for it, but I thought of letting you know in case you think it is worth integrating as a general purpose method.
The method would the range(start and end) of the style at a current position.
steps would something like this:
get the style at the caret position
get the boundaries of the style from the caret position: start range of style (left of caret) and end range of the style (right of caret).
Once I get that range, I can then apply additional styling. not only for that location, but for the whole range of characters to its left and right of it.