2025-03-14 21:59:59 -06:00
|
|
|
# silicon
|
|
|
|
|
|
|
|
|
|
> Create an image of source code.
|
2025-12-16 10:20:31 -07:00
|
|
|
> See also: `freeze`.
|
|
|
|
|
> More information: <https://github.com/Aloxaf/silicon#examples>.
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Generate an image from a specific source file:
|
|
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
`silicon {{path/to/source_file}} {{[-o|--output]}} {{path/to/output_image}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Generate an image from a source file with a specific programming language syntax highlighting (e.g. `rust`, `py`, `js`, etc.):
|
|
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
`silicon {{path/to/source_file}} {{[-o|--output]}} {{path/to/output_image}} {{[-l|--language]}} {{language|extension}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Generate an image from `stdin`:
|
|
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
`{{command}} | silicon {{[-o|--output]}} {{path/to/output_image}}`
|