Practical Guide

Code Snippet Beautifier — Usage Guide and Technical Principles

Export highlighted code as PNG at 1×, 2× or 3× with optional line numbers.

Open tool

Overview

Export highlighted code as PNG at 1×, 2× or 3× with optional line numbers. Copy Image uses the clipboard when available and downloads a PNG if the browser blocks it.

Key concepts

PNG scale

Export highlighted code as PNG at 1×, 2× or 3× with optional line numbers.

Copy Image

Copy Image uses the clipboard when available and downloads a PNG if the browser blocks it.

Features

PNG scale

Export highlighted code as PNG at 1×, 2× or 3× with optional line numbers.

Copy Image

Copy Image uses the clipboard when available and downloads a PNG if the browser blocks it.

Use Cases

Load Example

Load the JavaScript example, choose a language and theme, and select a PNG scale before exporting.

Frequently asked questions

What export formats are available?

Copy Image uses the clipboard when available and downloads a PNG if the browser blocks it.

How do I try the sample?

Load the JavaScript example, choose a language and theme, and select a PNG scale before exporting.

Related Documents

  • html2canvas

    Export highlighted code as PNG at 1×, 2× or 3× with optional line numbers.

  • CodeMirror

    Copy Image uses the clipboard when available and downloads a PNG if the browser blocks it.

Code Snippet Beautifier

Open the tool to try these features.

Open tool