Mathematica

Générateur d’images de code Mathematica

Transformez vos extraits Mathematica en images que l’on a envie de partager, sans quitter votre Mac.

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

Codeshot détecte Mathematica à partir du code que vous collez : aucun sélecteur de langage à se tromper. Voici le même extrait dans trois des 30 thèmes fournis, rendus avec les feuilles de style de l’app.

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

Choisir un thème pour Mathematica

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

Trouver la bonne taille

Laissez l’image suivre votre contenu ou fixez un rapport — 1:1, 4:3, 3:2, 16:9, 9:16, 2:3 ou 3:4 — puis exportez en 1×, 2× ou 3× pour qu’elle reste nette sur un écran retina. Copiez-la dans le presse-papiers avec C ou enregistrez avec S.

Voyez les 30 thèmes côte à côte ou lisez le déroulé complet.

Conçu pour Mathematica et 59 autres langages

Tout tourne sur votre Mac. Votre code ne le quitte jamais.

Télécharger pour macOS