RobMeade requested a “Copy to Clipboard” feature for code-fenced text, suggesting a button in the bottom-right corner. dax replied that this feature is already available in the Discourse core, and can be enabled in site settings by searching for “show copy button on codeblocks”. amotl thanked dax for pointing this out, and confirmed that the feature works as expected.
Could code fencing be enhanced to provide a Copy to Clipboard feature, currently, a CTRL+A selects all of the text in the whole window, not just the text in the fenced area when it’s focused.
Perhaps something like this in the bottom right and corner?