A picture of your code, for somewhere that will not take code
Paste a snippet into almost anything that is not an editor and you
get one color, a proportional font and indentation that drifts — so
people screenshot their editor instead and ship their own filename,
their own scrollbar and whatever was in the next tab. This makes the
picture on purpose.
What people make these for
- Slide decks. Conference talks, internal reviews, lecture
notes — the one place a code font and real syntax color are worth
the most and survive the least.
- Posts on social media. X, LinkedIn, Mastodon, Bluesky and
Threads all flatten a pasted snippet into gray prose. An image is
the only format they keep.
- Blog posts, newsletters and release notes written in a CMS
whose editor has no code block, or has one that mangles the
indentation.
- Documentation and READMEs — a picture for the part of a
page that is scanned rather than copied, next to the real code
block people will copy from.
- Tickets, bug reports and code review comments in Jira,
Linear, Confluence, Notion or Slack, where the point is usually
two lines out of twenty.
- Email. Most clients strip a code block to plain text and
some reflow it; an attachment or an inline image does not move.
- Teaching material — handouts, worksheets and exam papers
that get printed, where color and alignment have to survive a
trip through a word processor.
- Terminal sessions. Install steps and command transcripts,
with the prompt, the command and the output told apart rather than
colored as if the whole thing were source.
- Thumbnails and cover images for a video, a course or a
talk listing, where a few lines of code have to read at a glance.
- Explaining a diff or a fix — pick out the lines that
matter and the rest dims, so a picture of twenty lines can still
say which three are the point.
Terminal sessions, as the machine drew them
A pasted shell session is not a language — some lines were typed and
the rest came back — so it is colored by that distinction rather than
by a grammar: the prompt, the path you were in, and the command you
ran. The five presets under the editor each bring a whole look with
them, not just text: MS-DOS and green phosphor in a
digitised terminal face, PowerShell on its own blue with
commands in yellow, Ubuntu in Ubuntu Mono, and macOS on
white the way Terminal opens out of the box. Paste your own session
over the top and the look stays.
Prompts are recognised whichever machine wrote them — $
and ~/path on Linux, user@host ~ % on a Mac,
C:\> under DOS and PS C:\path> in
PowerShell. Output is left alone on purpose: it is most of a session,
and coloring it is how a terminal picture stops looking like one.
Four ways to take it with you
- A PNG at the width or height you ask for.
- Copy image puts that PNG straight on your clipboard, so
you can paste it into a slide without downloading anything.
- An SVG, which stays sharp at any size and whose text is
still text — searchable, and editable in Illustrator or Figma.
- The same snippet as colored HTML, for pasting straight
into Google Docs, Word, Notion or an email with the colors intact
— still selectable, searchable text rather than a picture.
Everything is drawn in your browser. Nothing you paste is uploaded,
which is the part that matters when the snippet came out of a
private repository.