Skip to content

Change Default Text Color #172

@silenuz

Description

@silenuz

first this looks like a cool control, thanks for the hard work.

I'm trying to implement a personal editor based on pandoc markdown. I want to implement syntax hi-lighting for it and stumbled across your project. I ran the java keyword demo included with the source. It looked nice, however when I spend long stretches at the computer I prefer an editor with a black background, think darcula in Intellij or Norway Today in Netbeans. So I proceeded to change the background colour to black, which was easy enough to achieve, I just added the following to the css file:

.styled-text-area{
    -fx-background-color:black;

}

With a little googling I found that I had to set the fill for the text as follows:

.styled-text-area .text{

    -fx-fill:yellow;
}

However when I set the fill as above there is no longer any syntax hi-lighting everything is yellow. So I was wondering if this is a bug or if there is some other way to change the default text colour.

Anyway to replicate just add the above to the java-keywords.css file.

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