mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
23 lines
708 B
Plaintext
23 lines
708 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# 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}}`
|