Transforme trechos de Clojure em imagens que valem a pena compartilhar, sem sair do seu Mac.
Clojure is nearly all structure, so the parens carry the meaning and the theme has to keep them visible.
O Codeshot detecta Clojure pelo código que você cola, então não há seletor de linguagem para errar. Aqui está o mesmo trecho em três dos 30 temas inclusos, renderizados com as folhas de estilo do próprio app.
(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 · escuro
(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 · escuro
(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 · escuro
Escolhendo um tema para Clojure
Pick a theme that tints delimiters differently from symbols, or a nested form turns into an undifferentiated block at small sizes.
Acertando o tamanho
Deixe a imagem seguir o conteúdo ou fixe uma proporção — 1:1, 4:3, 3:2, 16:9, 9:16, 2:3 ou 3:4 — e exporte em 1×, 2× ou 3× para que continue nítida em telas retina. Copie direto para a área de transferência com ⌘⇧C ou salve com ⌘S.