Erlang's punctuation is unusual enough that a screenshot is often clearer than trying to describe the syntax in prose.
Codeshotは貼り付けたコードからErlangを判別するので、言語の選び間違いは起きません。付属する30種類のうち3つのテーマで同じスニペットを、アプリ自身のスタイルシートで表示しています。
Erlang
Erlangのスニペットを、Macから離れることなく共有したくなる画像に。
Erlang's punctuation is unusual enough that a screenshot is often clearer than trying to describe the syntax in prose.
Codeshotは貼り付けたコードからErlangを判別するので、言語の選び間違いは起きません。付属する30種類のうち3つのテーマで同じスニペットを、アプリ自身のスタイルシートで表示しています。
-module(snapshot).
-export([export/2]).
export(Code, Opts) ->
Theme = proplists:get_value(theme, Opts, "xcode"),
Scale = proplists:get_value(scale, Opts, 2),
save(render(Code, Theme), Scale).
-module(snapshot).
-export([export/2]).
export(Code, Opts) ->
Theme = proplists:get_value(theme, Opts, "xcode"),
Scale = proplists:get_value(scale, Opts, 2),
save(render(Code, Theme), Scale).
-module(snapshot).
-export([export/2]).
export(Code, Opts) ->
Theme = proplists:get_value(theme, Opts, "xcode"),
Scale = proplists:get_value(scale, Opts, 2),
save(render(Code, Theme), Scale).
The trailing periods and commas are syntactically meaningful. Do not crop the right edge, or the snippet reads as broken code.
画像サイズを内容に合わせるか、比率で固定します(1:1、4:3、3:2、16:9、9:16、2:3、3:4)。そのうえで1×・2×・3×から選んで書き出せば、Retinaディスプレイでも鮮明なままです。⌘⇧Cでクリップボードに直接コピー、または⌘Sで保存できます。
30種類のテーマを見比べるか、全体の流れをご覧ください。
すべてMac上で動作します。コードが外に出ることはありません。