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:
@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: