1. Blog
  2. Screenshots

How to create beautiful code screenshots (and tweet mockups)

Pasting a real screenshot of your editor shows every tab and warning. A generated code image shows only the code, in the theme you choose.

By Robin Singh2 min read
Covers Pro features:Content templates
A syntax-highlighted TypeScript snippet in a dark window frame on a blue-violet gradient

Code in a tweet, a slide or a blog post is easiest to read as an image: consistent font, proper syntax colours, no wrapping surprises. A screenshot of your actual editor drags in file tabs, lint squiggles and your sidebar. A generated image contains only the snippet.

Flicka's templates render three kinds of content card — code snippets, tweets and testimonials — on the same backdrops and frames as screenshots, and export them as PNGs.

  1. ContentOpens the fields for the card: code, language, theme and options. Shortcut: Tab.
  2. Save PNGExports the card at high resolution.

Make a code screenshot in four steps

  1. Open templates and choose Code snippet

    Go to the templates workspace from the rail, or open /app?view=templates. Code snippet is the first template.

    The code snippet template with its content panel open
  2. Paste your code and pick the language

    Paste into the code field and choose from 20 languages, including TypeScript, TSX, Python, Go, Rust, Swift, SQL and Bash, so highlighting is accurate.

  3. Choose a theme and window

    Six editor themes — One Dark, VS Code Dark, Dracula, Nord, GitHub Dark and GitHub Light. Toggle the window bar, set a filename, and show or hide line numbers.

  4. Highlight the lines that matter, then save

    Enter lines like 2, 5-7 to emphasise them. Press Save PNG, or Annotate this to add arrows and callouts on top.

Tweet mockups for launches and landing pages

The Tweet template recreates a post card: name, handle, verified badge, avatar, text, timestamp, an optional attached image, light or dark theme, and reply, repost, like and view counts you can edit or hide.

Flicka's tweet template showing a post card with name, handle, text and engagement counts
Use it to feature real customer posts on a landing page, or to preview a launch tweet before you post it.

Testimonial cards

The Testimonial template sets a quote with the person's name, role, star rating and avatar, in card, quote or minimal layouts, with an accent colour and light or dark theme. It's the quickest way to turn a line from a review into social proof for a pricing page or an ad.

Flicka's testimonial template with a quote, star rating and author details

Finish the card like a screenshot

Templates sit on the same Look settings as everything else: gradients, padding, shadows and canvas sizes. The screenshot styling guide covers which backdrop and size to use for each platform.

Code screenshots: quick answers

How do I turn code into an image?

Open Flicka's Code snippet template, paste your code, choose the language and theme, and press Save PNG.

Which languages are supported?

TypeScript, JavaScript, TSX, JSX, Python, Java, C, C++, C#, Go, Rust, Ruby, Swift, Kotlin, PHP, SQL, Bash, JSON, YAML and HTML/XML.

Can I add arrows or notes to a code screenshot?

Yes. Press Annotate this to open the card in the annotator with every drawing tool.

Free, in your browser

Record your first take in under a minute.

No install and nothing uploaded. Auto-zoom, backdrops and export presets are ready the moment you stop recording.