Skip to content

Basic Code Block

Syntax highlighted code with line-by-line reveal.

Theme an embed without editing the bit: put data-variable-values on the data-composition-src element, or bake new defaults into the installed copy with --set.

IdTypeDefaultLabel
colorcolor#dcdcaaFunction color
backgroundcolor#100f0fBackground
<div data-composition-src="compositions/basic-code-block.html" data-variable-values='{"color":"#dcdcaa","background":"#100f0f"}'></div>
Terminal window
npx @av/hyperbits add basic-code-block --into compositions/ --set "background=#0b1020"