Code cards
Turn code, JSON or terminal output into a clean, highlighted image for slides, docs and chats.
A code card is an image of code with syntax highlighting, a window frame and a soft background. It’s sharper and easier to read than a screenshot of your editor.
Make one#
Choose Tools ▸ Code Card, then where the code comes from:
- From Clipboard: the text you copied.
- From File…: a UTF-8 text file up to 1 MB.
- From Grabbed Text: the text from your last Grab text.
Adjust it#
- Language: Automatic shows what Glimmer detected; pick another if it’s wrong. Plain text, Swift, JavaScript, TypeScript, Python, Go, Rust, Java, Kotlin, C, C++, Objective-C, C#, Ruby, PHP, Shell, SQL, JSON, YAML, TOML, HTML, XML, CSS, Markdown and Diff.
- Theme: Deep Glass, Paper or High contrast.
- Font size.
JSON is formatted for you, keeping numbers and key order exactly as written. If it’s malformed, the card shows the line and column of the error. Terminal colors (ANSI) are drawn as colors.
Secrets in the code are redacted before the card is drawn.
Save or copy#
Copy image, or Save PNG, Save PDF (text stays text) or Save SVG.
From the command line#
pbpaste | glimmer card - --language swift -o card.png
Next#
Something missing or unclear? Write to [email protected].