Skip to content

Testing a matching algorithm #56

@joegas

Description

@joegas

Hi Tomas,

i'm using RichTextFX to highlight search matches from a search algorithm i'm testing, somehow the way Chrome shows you the matches when you use the Find function.
For that im using:

styleClassedTextArea.setStyle(...);

I'm getting perfect results for a few amount of matches but it scales badly with larger texts. I was wondering if there's a more efficient way to set the Styles in the given ranges or maybe i'm using the wrong method for my purposes. Taking a look at the source I already started using setStyle instead of setStyleClass because of the second one creating a new ArrayList on every call.

Anyway, still great features and perhaps you have a tip for me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions