carpentries / workbench

Repository for Discussions and Materials about The Carpentries Workbench
https://carpentries.github.io/workbench/
Creative Commons Attribution 4.0 International
17 stars 7 forks source link

Add copy-to-clipboard buttons to code blocks #58

Open fiveop opened 1 year ago

fiveop commented 1 year ago

Though we generally type all code while teaching, I would have find it useful recently, while preparing to teach a lesson, to be able to copy a code block easily. I can select the block and then copy and paste it. It would however be easier, if there was a button that would cause the block’s contents to be copied to the clipboard (Similar to the buttons in the Clone-Dialog of GitHub next to the repository’s URL).