Combine code + text formatting inside an st.warning box?

Hi,

Is there a way to combine code + text formatting inside an st.warning box?

with #1: normal text
and #2: code

Thanks,
Charly

Also interested

And thanks for this beautiful project again.

2 Likes

I donโ€™t think thereโ€™s a way to do it natively @Charly_Wargnier, but itโ€™s probably possible using the CSS hack. Use HTML to name the divs separately, then give them custom rules.

1 Like

Great, Iโ€™ll give it a whirl Randy! :+1:
Thanks!