tldr/pages/common/carbon-now.md

37 lines
787 B
Markdown
Raw Permalink 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:
`carbon-now {{file}}`
- Create an image from a text in clipboard using default settings:
`carbon-now --from-clipboard`
- Create an image from standard input using default settings:
`{{input}} | carbon-now`
- Create images interactively for custom settings and optionally save a preset:
`carbon-now -i {{file}}`
2020-10-27 06:29:58 +00:00
- Create images from previously saved preset:
2020-09-05 12:40:30 +01:00
`carbon-now -p {{preset}} {{file}}`
- Start at a specified line of text:
`carbon-now -s {{line}} {{file}}`
- End at a specific line of text:
`carbon-now -e {{line}} {{file}}`
- Open image in a browser instead of saving:
`carbon-now --open {{file}}`