Text box with highlighted words

Dear Community,

I am wondering whether it’s possible to have a text box in Streamlit in which some words are highlighted based on defined criteria (frequency, or even hardcoded). Such functionality would be very helpful for text analysis tasks in which one may want to annotate the text and display it in the Streamlit. Is it possible already?

Hi @farshidbalan, welcome to the Streamlit community!

Is this an example of what you are looking for?

2 Likes

Hi @randyzwitch,

many thanks for your reply. Exactly, that seems to be a possible solution, I’ll test it to see how it works.

1 Like