snippetbashTip
silicon — Create an image of source code. See also: `freeze`. More information: <https://github.com/Aloxaf/sil
Viewed 0 times
createcommandsiliconsourcecliimagecodesee
Problem
How to use the
silicon command: Create an image of source code. See also: freeze. More information: <https://github.com/Aloxaf/silicon#examples>.Solution
silicon — Create an image of source code. See also: freeze. More information: <https://github.com/Aloxaf/silicon#examples>.Generate an image from a specific source file:
silicon {{path/to/source_file}} {{[-o|--output]}} {{path/to/output_image}}Generate an image from a source file with a specific programming language syntax highlighting (e.g.
rust, py, js, etc.):silicon {{path/to/source_file}} {{[-o|--output]}} {{path/to/output_image}} {{[-l|--language]}} {{language|extension}}Generate an image from
stdin:{{command}} | silicon {{[-o|--output]}} {{path/to/output_image}}Code Snippets
Generate an image from a specific source file
silicon {{path/to/source_file}} {{[-o|--output]}} {{path/to/output_image}}Generate an image from a source file with a specific programming language syntax highlighting (e.g. `rust`, `py`, `js`, etc.)
silicon {{path/to/source_file}} {{[-o|--output]}} {{path/to/output_image}} {{[-l|--language]}} {{language|extension}}Generate an image from `stdin`
{{command}} | silicon {{[-o|--output]}} {{path/to/output_image}}Context
tldr-pages: common/silicon
Revisions (0)
No revisions yet.