Is there a way to add a title/label to code blocks? Similarly, is there a way to reference a code block in text.
For example, I would like a piece of code to have a label that says “Listing 1: Example code” and then in the text I can refer to “Listing 1” when talking about it. Ideally, the numbering of code blocks would be automatically set by Zola, not manually by me.
If you are familiar with LaTeX, this is a supported feature of the listings` package.
Thanks in advance for your help!