Copy codeblock contents to clipboard

@frangio enabled Copy codeblock contents to clipboard

Codeblocks now have a copy button in the top right corner so that they can be easily copied to the clipboard.

Try it out with Box.sol below:


// contracts/Box.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;

contract Box {
    uint256 private value;

    // Emitted when the stored value changes
    event ValueChanged(uint256 newValue);

    // Stores a new value in the contract
    function store(uint256 newValue) public {
        value = newValue;
        emit ValueChanged(newValue);

    // Reads the last stored value
    function retrieve() public view returns (uint256) {
        return value;

To create a code block add ``` above and below your code.

Some code here