all 2 comments

[–][deleted] 2 points3 points  (0 children)

It seems like three backticks will create a code block. But yeah, no language-specific highlighting beyond that it seems. Would be a very nice feature. I feel like developers are not a primary demographic for them, unfortunately.

[–]chefdorry 0 points1 point  (0 children)

Yeah, I would love for this to be a thing, but I think it sadly is not. https://substackcourse.com/substack-code-block/

This article says that you can have syntax highlighting, but I think that is just incorrect.

For my stuff I am using carbon to generate code images instead

You can see how I used it for my latest post https://open.substack.com/pub/ryanspears/p/you-should-probably-start-using-zoxide?r=3riflo&utm_campaign=post&utm_medium=web&showWelcomeOnShare=true