tldr/pages/common/carbon-now.md

37 lines
828 B
Markdown
Raw Normal View History

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