Convierte fragmentos de Clojure en imágenes que merece la pena compartir, sin salir de tu Mac.
Clojure is nearly all structure, so the parens carry the meaning and the theme has to keep them visible.
Codeshot detecta Clojure a partir del código que pegas, así que no hay selector de lenguaje que puedas equivocar. Aquí tienes el mismo fragmento en tres de los 30 temas incluidos, renderizados con las hojas de estilo de la propia 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 · oscuro
(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 · oscuro
(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 · oscuro
Elegir un tema para Clojure
Pick a theme that tints delimiters differently from symbols, or a nested form turns into an undifferentiated block at small sizes.
Acertar con el tamaño
Deja que la imagen siga a tu contenido o fíjala a una proporción — 1:1, 4:3, 3:2, 16:9, 9:16, 2:3 o 3:4 — y exporta a 1×, 2× o 3× para que se mantenga nítida en pantallas retina. Cópiala al portapapeles con ⌘⇧C o guárdala con ⌘S.