Color different words inside a TextArea

Started by stefan, 20 October 2022, 22:26:07

stefan

Hello,

I wanted to build a simple text editor. Is it possible to color a word (or even an individual character) with different colors within a TextArea?
Something like:
textArea->getRenderer()->setTextColor(sf::Blue, startIndex, endIndex);
Regards,
Stefan Ilic

texus

No, such a widget doesn't exist unfortunately.

For a RichTextLabel I have some WIP code lying around, but there the text is static. A RichTextArea to be used as a text editor is far more complex and I've never started working on it. So this is not something to be expected anytime soon either.