Skip to content

How to set default text color with word highlighting of CodeArea? #442

@KnightPL

Description

@KnightPL

I want to color the words which have not yet been colored with word highlightning (patterns etc.)
I tried:

CodeArea codeArea = new CodeArea();
codeArea.setId("codearea");

and in .css file

#codearea .text {
    -fx-fill: whitesmoke;
}

but it colors all text in CodeArea
Any ideas or help ?
Sorry about my bad english :)
Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions