Elixir's pipelines are one of the few things that genuinely read better as an image than as text, because the shape is the argument.
Codeshotは貼り付けたコードからElixirを判別するので、言語の選び間違いは起きません。付属する30種類のうち3つのテーマで同じスニペットを、アプリ自身のスタイルシートで表示しています。
Elixir
Elixirのスニペットを、Macから離れることなく共有したくなる画像に。
Elixir's pipelines are one of the few things that genuinely read better as an image than as text, because the shape is the argument.
Codeshotは貼り付けたコードからElixirを判別するので、言語の選び間違いは起きません。付属する30種類のうち3つのテーマで同じスニペットを、アプリ自身のスタイルシートで表示しています。
defmodule Snapshot do
def export(code, opts \\ []) do
code
|> render(opts[:theme] || "xcode")
|> scale(opts[:scale] || 2)
|> save(opts[:path])
end
end
defmodule Snapshot do
def export(code, opts \\ []) do
code
|> render(opts[:theme] || "xcode")
|> scale(opts[:scale] || 2)
|> save(opts[:path])
end
end
defmodule Snapshot do
def export(code, opts \\ []) do
code
|> render(opts[:theme] || "xcode")
|> scale(opts[:scale] || 2)
|> save(opts[:path])
end
end
Keep the whole pipeline in one frame. A pipeline split across a crop loses the exact thing you were showing.
画像サイズを内容に合わせるか、比率で固定します(1:1、4:3、3:2、16:9、9:16、2:3、3:4)。そのうえで1×・2×・3×から選んで書き出せば、Retinaディスプレイでも鮮明なままです。⌘⇧Cでクリップボードに直接コピー、または⌘Sで保存できます。
30種類のテーマを見比べるか、全体の流れをご覧ください。
すべてMac上で動作します。コードが外に出ることはありません。