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
879 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 and copy to the clipboard:
2020-09-05 07:40:30 -04:00
`{{input}} | carbon-now --to-clipboard`
2020-09-05 07:40:30 -04:00
- Create images [i]nteractively for custom settings and optionally save a preset:
2020-09-05 07:40:30 -04:00
2022-12-04 10:12:49 +01:00
`carbon-now -i {{path/to/file}}`
2020-09-05 07:40:30 -04:00
- Create images from a previously saved [p]reset:
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
- [s]tart at a specified line of text:
2020-09-05 07:40:30 -04:00
2022-12-04 10:12:49 +01:00
`carbon-now -s {{line}} {{path/to/file}}`
2020-09-05 07:40:30 -04:00
- [e]nd at a specific line of text:
2020-09-05 07:40:30 -04:00
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}}`