Collapsible code sections in discourse?

Sorry if this might be trivial but have no idea of how to do it:
Saw on a number of occasions “collapsible” Julia code blocks in discourse posts.
Cannot find an example right now but basically the hidden code expands after clicking on the text header with an arrow.
Thank you.

Hide details in parameters menu

Summary

This text will be hidden

7 Likes
<details>
foo bar
</details>
foo bar
7 Likes

Thanks both!

1 Like