s72
  • One-line command

    data-command

    One command in a bar of its own, with a Copy button at the end. Put the command in a <code> and nothing else; the $ in front is drawn by the stylesheet, so it never reaches the clipboard.

    Basic

    cd ~/code/atlas && atlas build --watch

    html
    <p data-command><code>cd ~/code/atlas && atlas build --watch</code></p>

    The bar fills the width it is given and wraps rather than scroll, so a long command stays readable on a phone.

    Notes