1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/carbon-now.md

37 lines
828 B
Markdown
Raw Normal View History

2020-09-05 07:40:30 -04:00
# carbon-now
> Create beautiful images of code.
2021-01-07 13:07:46 -05:00
> More information: <https://github.com/mixn/carbon-now-cli>.
2020-09-05 07:40:30 -04:00
- Create an image from a file using default settings:
2022-12-04 10:12:49 +01:00
`carbon-now {{path/to/file}}`
2020-09-05 07:40:30 -04:00
- Create an image from a text in clipboard using default settings:
`carbon-now --from-clipboard`
- Create an image from `stdin` using default settings:
2020-09-05 07:40:30 -04:00
`{{input}} | carbon-now`
- Create images interactively for custom settings and optionally save a preset:
2022-12-04 10:12:49 +01:00
`carbon-now -i {{path/to/file}}`
2020-09-05 07:40:30 -04:00
2020-10-27 09:59:58 +03:30
- Create images from previously saved preset:
2020-09-05 07:40:30 -04:00
2022-12-04 10:12:49 +01:00
`carbon-now -p {{preset}} {{path/to/file}}`
2020-09-05 07:40:30 -04:00
- Start at a specified line of text:
2022-12-04 10:12:49 +01:00
`carbon-now -s {{line}} {{path/to/file}}`
2020-09-05 07:40:30 -04:00
- End at a specific line of text:
2022-12-04 10:12:49 +01:00
`carbon-now -e {{line}} {{path/to/file}}`
2020-09-05 07:40:30 -04:00
- Open image in a browser instead of saving:
2022-12-04 10:12:49 +01:00
`carbon-now --open {{path/to/file}}`