I'm currently trying to customize the styles in your JavaKeywordsAsync.java example.
Say I want to give keywords a background/highlight color (the use of "highlight" might be a little confusing since the CSS property "-fx-highlight-fill" is actually a property for the selection color in JavaFX, but normally it is a term used for the background color of specific segments of text) by changing the properties in the java-keysword.css, how would I go on doing this? Is it possible?
I've tried using both "-fx-background color" and "-fx-background-fill", but neither seeems to do the trick:
.keyword {
-fx-fill: purple;
-fx-font-weight: bold;
-fx-background-color: blue;
-fx-background-fill: blue;
}
Thanks in advance!
Best regards
Jonatan
I'm currently trying to customize the styles in your JavaKeywordsAsync.java example.
Say I want to give keywords a background/highlight color (the use of "highlight" might be a little confusing since the CSS property "-fx-highlight-fill" is actually a property for the selection color in JavaFX, but normally it is a term used for the background color of specific segments of text) by changing the properties in the java-keysword.css, how would I go on doing this? Is it possible?
I've tried using both "-fx-background color" and "-fx-background-fill", but neither seeems to do the trick:
.keyword {
-fx-fill: purple;
-fx-font-weight: bold;
-fx-background-color: blue;
-fx-background-fill: blue;
}
Thanks in advance!
Best regards
Jonatan