How to highlight some words from a custom dictionnnary using CodeArea from RichTextFx

309 Views Asked by At

What I want to do is pretty simple in my head, but might be very hard to do.

Currently, I did set up RichTextFx in my JavaFX project and created a code area. What I'd like to do is make some words a certain color depending on a custom dictionary that I'd make. For example, I'd have an array list for all the words that should be red, and I'd somehow link it to the code area.

I have absolutely no idea how to do that, and if it even is possible. Anyway, I'd very much appreciate it if you could help me!

0

There are 0 best solutions below