Code snippet canvas

Lay out code with arrows, shapes, and text to explain how it works, then export the whole canvas as a PNG.

Features

What the canvas can do

Elements

  • Code blocks

    Syntax highlighting in 27 languages, a canvas theme, line numbers, font size, a title bar with window dots, border, corner radius and background opacity. Format with Shift+Alt+F.

  • Text

    Six fonts, bold and italic, sizes from 12 to 128 px, alignment, text and background color, border and corner radius.

  • Shapes

    Rectangles, ellipses and polygons with 3 to 8 sides, with a fill and a border.

  • Arrows

    Straight or curved, solid, dashed or dotted, with arrow, circle or square ends. An arrow end can stick to an element and follow it.

  • Images

    Add an image from a URL, with a border and rounded corners.

  • Watermark

    An optional snipsco.com label with its own colors and size.

Canvas

  • Backgrounds

    Seven gradient presets, a solid color or an image URL, with 11 patterns like dots, hearts, honeycomb and waves at any opacity.

  • Move, resize, rotate

    Drag elements into place with snap guides. Hold Alt to place freely. Resize the canvas itself too.

  • Layers

    Reorder elements, bring them to the front or send them back, hide them, or delete them.

  • Right-click menu

    Duplicate, reorder or delete an element. Paste on the canvas to add copied code as a new block.

  • Keyboard shortcuts

    Undo and redo, zoom in and out, select all, delete, Enter to edit and Esc to stop. Shift-click selects several elements.

  • Zoom

    Zoom from 10% to 200% and scroll to move around.

Export and projects

  • PNG at 1x

    Export the canvas as a PNG, or copy it to the clipboard.

  • PNG at 2x Pro

    Twice the pixels for sharp slides and docs.

  • Copy one block

    Copy just one code block as an image.

  • Projects

    Keep several projects, and rename or delete them. They are saved in this browser.

  • Snapshots

    Save a snapshot of the canvas and go back to it later.

How to make an annotated code image

  1. 01

    Add your code

    Add a code block, paste your code, and pick its language and theme. Add more blocks to compare versions.

  2. 02

    Explain it

    Put arrows, shapes, text, and images around the code, and drag them into place.

  3. 03

    Export a PNG

    Export the canvas as a PNG. Projects are saved in this browser, so you can come back to them.

Just one snippet?

Code to image puts one snippet in a clean frame, with themes and sizes for posts and slides.

Open Code to image

FAQ

Questions