Copy to clipboard from code snippets
I show code snippets a lot, and it would be convenient for the audience to be able to have a copy-to-clipboard option. Yes, they can drag and select, but for larger code samples, that's awkward.
This has been added 🚀
If you hover over a code block anywhere outside of the editor, a blue Copy button will appear in the top right corner.
Gabriel Pitali commented
The feature is great, but I really miss an option to disable it, since in some cases it may appear over important code.
Max Rahder commented
Thanks! This helps me a lot.
Note that you may want a checkbox in the editor to allow people to choose which code boxes show that. I can imagine some cases where the author wants the code and syntax highlighting, and *not* the Copy button.