Skip to content

Method to get style range at the current position. #26

@ghost

Description

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions