How to dynamically format text?

In my collection I have two fields: key_word (a string field) and example which holds an example of use. Below is an example:

key_word: "The"
example: "The book is on the table"

I need to format differently the word “The” in the phrase above: “The book is on the table”.

Is it possible to do it in appGyver?

If it’s not possible at all, perhaps I’ll be able to have another field with the CSS encoding containing the format.

example_CSS: '<b><span style="font-weight: 400;">&nbsp;I’m reading </span><font color="#eb1a35">the</font><span style="font-weight: 400;"> book.</span></b>'

You can use the rich text viewer instead of paragraph component.
There you can format text using markdown.

Thank you. That solves my initial issue. Do you know any other solution that supports changing of colors?

You can use the html renderer from the component market for this and add css.

1 Like