HomeCode Block

Code Block

A code box with a copy button

Turns a block of code into something readable: a filename strip, syntax colors, line numbers, emphasized lines, folding for long files, and a copy button that tells you it worked. No highlighter bundle to download. Included in the BootSignal subscription ($20/mo or $200/yr, every widget on 1 domain, add more from the dashboard). Unlimited snippets while subscribed.

Preview
<script src="https://bootsignal.com/bootsignal.js"
        data-site-id="YOUR_SITE" defer></script>

<div data-bootsignal="codeblock" data-label="index.html">
  <pre>npm create astro@latest</pre>
</div>

The same loader (bootsignal.js) powers your other widgets too. An active subscription is required to run the widget.

Pricing is a single BootSignal subscription: $20/mo or $200/yr (2 months free). It unlocks every widget on 1 registered domain, and you can add more domains from the dashboard. Writing snippets requires an active subscription; while subscribed, usage is unlimited with no per-use charges, and reading is always free for visitors. Manage the subscription at accounts.mrlatte.net. See full pricing →