Turn Clojure snippets into images worth sharing, without leaving your Mac.
Clojure is nearly all structure, so the parens carry the meaning and the theme has to keep them visible.
Codeshot detects Clojure 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.
(defnexport"Render a snippet and write it to path."
[{:keys [code theme scale] :or {theme "xcode" scale 2}} path]
(-> code
(render theme)
(save path {:scale scale})))
Atom One · dark
(defnexport"Render a snippet and write it to path."
[{:keys [code theme scale] :or {theme "xcode" scale 2}} path]
(-> code
(render theme)
(save path {:scale scale})))
GitHub · dark
(defnexport"Render a snippet and write it to path."
[{:keys [code theme scale] :or {theme "xcode" scale 2}} path]
(-> code
(render theme)
(save path {:scale scale})))
Solarized · dark
Choosing a theme for Clojure
Pick a theme that tints delimiters differently from symbols, or a nested form turns into an undifferentiated block 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.