silicon

Create an image of source code.

TLDR

Generate an image from a specific source file

$ silicon [path/to/source_file] --output [path/to/output_image]
copy


Generate an image from a source file with a specific programing language syntax highlighting (e.g. rust, py, js, etc.)
$ silicon [path/to/source_file] --output [path/to/output_image] --language [language|extension]
copy


Generate an image from stdin
$ [command] | silicon --output [path/to/output_image]
copy

Copied to clipboard