-
Enhancement
-
Resolution: Unresolved
-
P4
-
jfx24
-
generic
-
generic
A DESCRIPTION OF THE PROBLEM :
Currently, the only way to set the background color of a text segment in RichTextArea or CodeArea is through Java code, using RichParagraph.Builder#addHighlight(int start, int length, Color color).
However, one of the key strengths of JavaFX is its support for CSS-based styling, which allows developers to style components without writing code. Among the most fundamental aspects of text styling are foreground and background colors, both of which have been supported since CSS1 (1996).
Therefore, I propose adding support for styling background color of text via CSS. This is an essential and widely expected feature.
Currently, the only way to set the background color of a text segment in RichTextArea or CodeArea is through Java code, using RichParagraph.Builder#addHighlight(int start, int length, Color color).
However, one of the key strengths of JavaFX is its support for CSS-based styling, which allows developers to style components without writing code. Among the most fundamental aspects of text styling are foreground and background colors, both of which have been supported since CSS1 (1996).
Therefore, I propose adding support for styling background color of text via CSS. This is an essential and widely expected feature.
- relates to
-
JDK-8351982 ☂ RichTextArea (Incubator) Feedback and Bugs in jfx24
-
- Open
-
-
JDK-8357008 Add support for styling underline and wavy underline in CodeArea via CSS file
-
- Open
-