行 0
字符 0
外框
大小 16 px
边距 48 px

关于代码图片的更多说明

Code to Image

Paste a snippet and see it as a picture: comments, strings, numbers and keywords in a theme, inside a window or a plain card. Save a PNG for a slide or a post. The code stays in this browser. 粘贴一段代码,选择语言和配色,然后保存为图片,用于幻灯片或帖子。随机会换一段代码和另一种外观。代码只留在此浏览器中。

它是如何运作的

  1. Paste a snippet, or start from the sample, and choose the language.
  2. Pick a theme, a window or a plain card, and a backdrop.
  3. Save a PNG for a slide or a post. The snippet stays in this browser.

A picture of the code

The colours follow the groups an editor uses: comments, strings, numbers, keywords and names that are called. They make the shape of a snippet easy to see on a slide. They do not check that the code runs.

Frame, backdrop and size

A window adds the three dots and a title. Plain is only the card. The backdrop can be a flat colour or a gradient. Line numbers, padding and the type size change how the picture sits on a page.

常见问题

Does this run my code?

No. It draws the snippet with a visual theme. The colours do not mean the code was checked.

Is my code uploaded?

No. The picture is drawn in your browser, and the last snippet stays there.

Which languages can I use?

JavaScript, TypeScript, Python, C#, Java, C++, Go, Rust, HTML, CSS, JSON, SQL and Bash are coloured. Anything else can be shown as plain text.

How do I put it on a slide?

Save a PNG and drop it into the slide or the post. A window frame and a gradient backdrop read well on a screen.

准备好尝试了吗?

在浏览器中打开 PictorX — 无需安装,无需信用卡即可启动。

前往编辑器