Can dcc.Textarea or html.Textarea support css style text?

Can Textarea support css style text?
For example, if my str output to Textarea :

str = '<h1 style="color:blue;">This is a heading</h1>'

Currently it will print the whole string directly, but what I want is a colored text, is it possible?

I know that I can set
style={'color': 'blue''} in dcc.Tetxtarea or html.Textarea, but I don’t want every string in Textarea are in the same color, so this

Add argument “style” in Textarea

solution might not suitable for me.