Code — a Lattice plugin, live

Plugin · Demo

Code

Paste code, name the language; it's highlighted in your theme.

A fenced code block tagged with its language, like ts or python, comes out on a code panel with every keyword, string and comment in the theme's syntax colors. One line above the block, @code{…}, adds a title, line numbers, a focus on the lines that matter or a diff — and copy buttons where the deck is read in a browser.

Open in Playground
Example

Pick an example, then press Edit and change it — the slide redraws as you type.It's on in every deck: there's nothing to install or switch on.

Learn what it's for, and how to use it

The guide covers the problem it solves, the syntax in full, where it fits beyond slides, and what it doesn't do.