Turn Lisp snippets into images worth sharing, without leaving your Mac.
Lisp is parentheses and indentation, so the visual shape of the code is close to the whole of its meaning.
Codeshot detects Lisp from the code you paste, so there is no language picker to get wrong. Here is the same snippet in three of the 30 themes it ships with, rendered with the app's own stylesheets.
(defun export-snapshot (code&key (theme"xcode") (scale2))
"Render CODE and write it out."
(let ((image (render code theme)))
(save image :scale scale)))
Atom One · dark
(defun export-snapshot (code&key (theme"xcode") (scale2))
"Render CODE and write it out."
(let ((image (render code theme)))
(save image :scale scale)))
GitHub · dark
(defun export-snapshot (code&key (theme"xcode") (scale2))
"Render CODE and write it out."
(let ((image (render code theme)))
(save image :scale scale)))
Solarized · dark
Choosing a theme for Lisp
A theme that tints delimiters differently from symbols is close to mandatory. Without it a nested form is a solid block of grey at small sizes.
Getting the size right
Let the image follow your content, or lock it to a ratio — 1:1, 4:3, 3:2, 16:9, 9:16, 2:3, or 3:4 — then export at 1×, 2×, or 3× so it stays sharp on a retina display. Copy it straight to the clipboard with ⌘⇧C, or save with ⌘S.