Mathematica

Mathematica Code Screenshot Generator

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

Wolfram Language is verbose in a way that reads well once coloured, and badly when pasted as plain text into anything.

Codeshot detects Mathematica 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.

exportSnapshot[code_String, OptionsPattern[]] :=
  Module[{img, theme = OptionValue["Theme"]},
    img = render[code, theme];
    Export["snapshot.png", img, ImageResolution -> 144]
  ]
GitHub · dark
exportSnapshot[code_String, OptionsPattern[]] :=
  Module[{img, theme = OptionValue["Theme"]},
    img = render[code, theme];
    Export["snapshot.png", img, ImageResolution -> 144]
  ]
iA · dark
exportSnapshot[code_String, OptionsPattern[]] :=
  Module[{img, theme = OptionValue["Theme"]},
    img = render[code, theme];
    Export["snapshot.png", img, ImageResolution -> 144]
  ]
Solarized · dark

Choosing a theme for Mathematica

Bracket types carry meaning here — square, curly and double square all differ. Choose a theme that does not flatten them into one colour.

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 Mathematica, and 59 other languages

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

Download for macOS