silicon

Create beautiful syntax-highlighted images of your source code

brewmacoslinux
Try with needOr install directly
Source

About

Create beautiful image of your source code

Commands

silicon

Examples

Generate an image from a source file with default settings$ silicon input.py --output output.png
Create a code image with a specific theme and line numbers$ silicon main.rs --theme Dracula --line-number --output code.png
Generate an image from stdin and set custom dimensions$ cat script.js | silicon --output script.png --window-title 'My Script'