processing / processing-pi-website

Files for the pi.processing.org subdomain that documents Processing on the Raspberry Pi
https://pi.processing.org/
16 stars 10 forks source link

Feature copy to clipboard #39

Closed msurguy closed 5 years ago

msurguy commented 5 years ago

@gohai

This addresses https://github.com/processing/processing-pi-website/issues/17 and implements universal "copy" feature on all code blocks wrapped in pre tags.

You'll find a little "copy" button on top right of every code block. When clicked, the code from the code block will be copied to clipboard and the button text would update to let the user know that the code was copied.

Here's a screenshot of the "copy" button within the code block:

Screen Shot 2019-03-23 at 11 27 28 PM
gohai commented 5 years ago

Sounds very useful - thanks @msurguy