Превращайте фрагменты Clojure в изображения, которыми хочется делиться, не покидая Mac.
Clojure is nearly all structure, so the parens carry the meaning and the theme has to keep them visible.
Codeshot определяет Clojure по вставленному коду, так что ошибиться с выбором языка невозможно. Вот один и тот же фрагмент в трёх из 30 встроенных тем, отрисованных стилями самого приложения.
(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 · тёмная
(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 · тёмная
(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 · тёмная
Как выбрать тему для Clojure
Pick a theme that tints delimiters differently from symbols, or a nested form turns into an undifferentiated block at small sizes.
Как выбрать размер
Пусть размер следует за содержимым или зафиксируйте соотношение — 1:1, 4:3, 3:2, 16:9, 9:16, 2:3 или 3:4 — а затем экспортируйте в 1×, 2× или 3×, чтобы изображение оставалось чётким на retina-экране. Скопируйте его в буфер обмена сочетанием ⌘⇧C или сохраните через ⌘S.