Lisp is parentheses and indentation, so the visual shape of the code is close to the whole of its meaning.
Codeshotは貼り付けたコードからLispを判別するので、言語の選び間違いは起きません。付属する30種類のうち3つのテーマで同じスニペットを、アプリ自身のスタイルシートで表示しています。
Lisp
Lispのスニペットを、Macから離れることなく共有したくなる画像に。
Lisp is parentheses and indentation, so the visual shape of the code is close to the whole of its meaning.
Codeshotは貼り付けたコードからLispを判別するので、言語の選び間違いは起きません。付属する30種類のうち3つのテーマで同じスニペットを、アプリ自身のスタイルシートで表示しています。
(defun export-snapshot (code &key (theme "xcode") (scale 2))
"Render CODE and write it out."
(let ((image (render code theme)))
(save image :scale scale)))
(defun export-snapshot (code &key (theme "xcode") (scale 2))
"Render CODE and write it out."
(let ((image (render code theme)))
(save image :scale scale)))
(defun export-snapshot (code &key (theme "xcode") (scale 2))
"Render CODE and write it out."
(let ((image (render code theme)))
(save image :scale scale)))
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.
画像サイズを内容に合わせるか、比率で固定します(1:1、4:3、3:2、16:9、9:16、2:3、3:4)。そのうえで1×・2×・3×から選んで書き出せば、Retinaディスプレイでも鮮明なままです。⌘⇧Cでクリップボードに直接コピー、または⌘Sで保存できます。
30種類のテーマを見比べるか、全体の流れをご覧ください。
すべてMac上で動作します。コードが外に出ることはありません。