2025-03-14 21:59:59 -06:00
|
|
|
# carbon-now
|
|
|
|
|
|
|
|
|
|
> Create beautiful images of code.
|
|
|
|
|
> More information: <https://github.com/mixn/carbon-now-cli>.
|
|
|
|
|
|
|
|
|
|
- Create an image from a file using default settings:
|
|
|
|
|
|
|
|
|
|
`carbon-now {{path/to/file}}`
|
|
|
|
|
|
|
|
|
|
- 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:
|
|
|
|
|
|
|
|
|
|
`{{input}} | carbon-now --to-clipboard`
|
|
|
|
|
|
2025-04-03 20:36:56 -06:00
|
|
|
- Create images interactively for custom settings and optionally save a preset:
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-04-03 20:36:56 -06:00
|
|
|
`carbon-now {{[-i|--interactive]}} {{path/to/file}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-04-03 20:36:56 -06:00
|
|
|
- Create images from a previously saved preset:
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-04-03 20:36:56 -06:00
|
|
|
`carbon-now {{[-p|--preset]}} {{preset}} {{path/to/file}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-04-03 20:36:56 -06:00
|
|
|
- Start at a specified line of text:
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-04-03 20:36:56 -06:00
|
|
|
`carbon-now {{[-s|--start]}} {{line}} {{path/to/file}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-04-03 20:36:56 -06:00
|
|
|
- End at a specific line of text:
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-04-03 20:36:56 -06:00
|
|
|
`carbon-now {{[-e|--end]}} {{line}} {{path/to/file}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Open image in a browser instead of saving:
|
|
|
|
|
|
|
|
|
|
`carbon-now --open {{path/to/file}}`
|