How to set default text color with word highlighting of CodeArea?
See original GitHub issueI 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
Issue Analytics
- State:
- Created 7 years ago
- Comments:20 (12 by maintainers)
Top Results From Across the Web
Change the default text color (font color) in Word
Go to Format > Font > Font. + D to open the Font dialog box. Select the arrow next to Font color, and...
Read more >How to highlight some words from a custom dictionnnary ...
Currently, I did set up RichTextFx in my JavaFX project and created a code area. What I'd like to do is make some...
Read more >4 Easy Tips to Change the Color of Comment Balloons or ...
At first, open the Word document which you need to change the comment balloon color. Then click “Track Changes” under “Review” tab. On...
Read more >How to change the default text color in Word - in 1 minute!
The little things make all the difference. If you're constantly having to change the text color in Microsoft Word to something you favor, ......
Read more >Text Highlight and Font Color in Microsoft Word - YouTube
In this video, you can learn how to change the text highlight and font or text color in the Microsoft Word. Also, learn...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@JordanMartinez I check out all above your answers, but sadly I didn’t solve my problem in the end…
I run the
XMLEditor Demo
. Actually, I just want to do one thing :So I modified the
xml-highlighting.css
like :It worked, BUT the line numbers became white, too Now I cant see them because its background is grey
How can I solve this problem ? Thanks~
Actually…
#codeArea .text { /* CSS */ }
does the same thing as the full string above… I remembered this issue being different from what it actually was.Forget what I said in my previous comment, @KnightPL. Instead, I found that this will work: Given a CSS file like:
and an application like so:
I can override the default
whitesmoke
fill with ared
fill.