I’m falling into the habit of wrapping code blocks in <small>
tags to avoid a horizontal scrollbar.
There’s a plugin/addon available for Discourse that adds a tool to code blocks (where the copy plugin lives) that allows the code block to be expanded. Would be nice to see it added, if you have time to find it.