sss_code

sss_code is a CLI-only renderer: feed it a source file or stdin, get back a PNG with syntax highlighting, line numbers, gradients, and optional macOS-style window chrome.

sss_code rendering a Rust source file to a PNG with syntax highlighting
Rust source rendered with the default theme + gradient background

It bundles every syntect language and theme out of the box, so you can render Rust, TS, Go, Python, Nix, Markdown — anything with a Sublime Text .sublime-syntax definition.

At a glance

  • Syntax: every syntect-supported language, plus drop-in .sublime-syntax folders.
  • Themes: every base16 theme + custom vim highlight imports.
  • Output: PNG only, with configurable background (solid, horizontal, vertical, or wallpaper image).
  • Pipes well: cat foo.rs | sss_code --extension rs > foo.png.

When to use it

GoalFlag combination
Render a filesss_code path/to/file.rs
Pipe stdin, hint extensioncat foo.rs | sss_code -e rs
Pick a themesss_code --theme github
Render only lines 10–40sss_code --lines 10..40 main.rs
Highlight lines 22–25sss_code --highlight-lines 22..25 main.rs

Jump to getting started for a walkthrough or flags for the full reference.

pages

In this section