1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-08-04 21:15:35 +02:00

silicon: change the to and

This commit is contained in:
CleanMachine1 2022-08-24 15:50:55 +00:00 committed by GitHub
parent c84a1a7ecc
commit d386b8bc7e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,14 +3,14 @@
> Create an image of source code. > Create an image of source code.
> More information: <https://github.com/Aloxaf/silicon>. > More information: <https://github.com/Aloxaf/silicon>.
- Generate the image from a specific source file: - Generate an image from a specific source file:
`silicon {{path/to/source_file}} --output {{path/to/output_image}}` `silicon {{path/to/source_file}} --output {{path/to/output_image}}`
- Generate the image from a source file with a specific programing language syntax highlighting (e.g. `rust`, `py`, `js`, etc.): - 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}}` `silicon {{path/to/source_file}} --output {{path/to/output_image}} --language {{language|extension}}`
- Generate the image from `stdin`: - Generate an image from `stdin`:
`{{command}} | silicon --output {{path/to/output_image}}` `{{command}} | silicon --output {{path/to/output_image}}`