Erlang

Erlang Code Screenshot Generator

Turn Erlang snippets into images worth sharing, without leaving your Mac.

Erlang's punctuation is unusual enough that a screenshot is often clearer than trying to describe the syntax in prose.

Codeshot detects Erlang from the code you paste, so there is no language picker to get wrong. Here is the same snippet in three of the 30 themes it ships with, rendered with the app's own stylesheets.

-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).
GitHub · dark
-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).
Solarized · dark
-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).
Tokyo Night · dark

Choosing a theme for Erlang

The trailing periods and commas are syntactically meaningful. Do not crop the right edge, or the snippet reads as broken code.

Getting the size right

Let the image follow your content, or lock it to a ratio — 1:1, 4:3, 3:2, 16:9, 9:16, 2:3, or 3:4 — then export at 1×, 2×, or 3× so it stays sharp on a retina display. Copy it straight to the clipboard with C, or save with S.

See all 30 themes side by side, or read the full workflow.

Built for Erlang, and 59 other languages

Everything runs on your Mac. Your code never leaves it.

Download for macOS