I can set a block of code with monospace font and simple #raw or codly package.
I can modify the properties of this with a #text - font, font size, horizontal spacing, etc.
However, I seem to be unable to adjust the spacing between lines - I tried with #par(leading), but that does not seem to do anything?
How do I set spacing between lines with raw/codly blocks?
Yes: applying #show raw.where(block: true): set par(leading: 2cm) (for example) does have an effect over unmodified raw blocks, but the codly package completely rewrites how raw blocks work, rendering that show rule ineffective.
I’ve looked around and Codly 1.0.0 does not appear to support changing line spacing: you can configure inset with #codly(inset: 1cm) for example, but that changes not only inset between lines but also between the text and the left and right borders.
It seems that the upcoming Codly 1.1.0 will support this: it appears to support syntax such as #codly(inset: (top: 1cm, bottom: 1cm)) from a quick look at the code, which would allow you to change only the vertical inset, effectively changing line spacing. However, it is currently unreleased. You could copy the (currently unreleased) code from its repository if you need it: GitHub - Dherse/codly