talkgroup

Code blocks copying

Hey, there is a new Copy Codeblocks component:

It does a cool thing: easy copy button on code blocks! Like so (hover over it, it shows up in the upper right corner):

<!doctype html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <title>maiki</title>
        <link href="https://maiki.xyz/css/style.css" rel="stylesheet" type="text/css">
    </head>
    <body>
        <main>
    <header>
        <h1>maiki</h1>
    </header>
    <p><a href="mailto:hello@maiki.xyz">hello@maiki.xyz</a><br />
<a href="tel:510-519-9449">510-519-9449</a></p>


        </main>
    </body>
</html>

And worked on mobile. Mirrored at mirror/discourse-copy-codeblocks - discourse-copy-codeblocks - allthe.codes.