Is there a best way to render a response containing texts, code snippets or image (dynamicly)

Hello !
Just had a little question, will try to stay concise with a basic example :
In a AI chat interaction, the assistant in its answer have a text basic string, and also give a code snippet, is there a way using like Rich text element, to check the semantic, if it’s a dev language then display the text portion into a component or css class ?

Thanks and have a good day !

Maybe you can ask your AI to reply in a markdown format, at least return the part of the code wrapped inside “```”, if you use the rich text to display it, it will be interpreted as a code block :slight_smile:

mmh will try it eventually i guess, it works fine for H1, bold etc for eg, but i have a feeling that i would need to wait the server side components feature for it

if only it were a bit higher in the feature roadmap ahahh

thanks anyways will keep updated !