Kodza

Code Block

Code to read and copy: file name, line numbers, highlighted lines and a monochrome syntax in weight and light. Copy rolls to Copied; a terminal copies its commands only.

Data display No dependencies codesyntaxcopyterminal Added Oct 2026
/anim/code-block/ Fullscreen

With your AI

Just ask.

Say it to your AI. It gets the exact code below, not its best guess, and knows where it goes.

Show my install snippets in a Kodza Code Block.

Not plugged in yet?
claude mcp add -t http kodza https://kodza.dev/api/mcp
Also in Codex, Cursor and VS Code.
kodza-code-block.html
<figure class="kodza-code">
  <figcaption class="kodza-code__head">
    <span class="kodza-code__file">fill-button.js</span>
    <button class="kodza-code__copy" type="button"><span class="kodza-code__words"><span>Copy</span><span>Copied</span></span></button>
  </figcaption>
  <pre class="kodza-code__pre" data-lang="js" data-highlight="4-6"><code>// The ink comes in from where the pointer did
document.querySelectorAll('.kodza-fill-button').forEach((button) =&gt; {
  button.addEventListener('pointerenter', (event) =&gt; {
    const box = button.getBoundingClientRect();
    const x = event.clientX - box.left;
    button.style.setProperty('--x', `${x}px`);
  });
});</code></pre>
</figure>

<figure class="kodza-code kodza-code--terminal">
  <figcaption class="kodza-code__head">
    <span class="kodza-code__file">Terminal</span>
    <button class="kodza-code__copy" type="button"><span class="kodza-code__words"><span>Copy</span><span>Copied</span></span></button>
  </figcaption>
  <pre class="kodza-code__pre" data-lang="shell"><code>$ npx degit kodza/button-fill my-button
&gt; cloned kodza/button-fill#main to my-button
$ open my-button/index.html</code></pre>
</figure>

Checked

Checked before you paste.

Robots poked at it before you did. Every component goes through the same checks, and again each time it changes.

What ranLast run
Accessibilityaxe-core 4.10.2: the WCAG 2.1 A and AA rules, plus best practices. 0 issues
KeyboardThe Tab key gets there, and the focus ring shows when it does. Passed
Reduced motionTurn on reduced motion and what moved just appears. Nothing loops. Passed
Light and darkThe same checks on both themes, contrast included. Passed
WordPressPasted into Twenty Twenty-Five, Twenty Twenty-One, Astra, Blocksy, GeneratePress, Hello Elementor, Kadence and OceanWP. Nothing to flag. 8 / 8 themes
Robots checked this. A human with VoiceOver hasn't yet.

More like this

More in Data display