Skip to content

How to change color of selected text? #974

Open
@jamesaw668

Description

@jamesaw668

I want to change the color of the currently selected text so that it is white. How would I do this?

Using the CSS Reference Guide I have been able to change the colour of the selection rectangle from the default blue but cannot find a way to change the color of text in the bounds of this selection. I want this to be set regardless of the underlying style set by my code.

For example, the JavaKeywordsDemo sets the color of the keyword "final" to purple & it remains purple when selected. I want it to turn white when selected (along with any other non-keyword text in the selection) but become purple again when the selection is removed.

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