commands.sh

carbon-now

all

Create beautiful images of code.

More info →

Options (4)

-i, --interactiveboolean

Create images interactively for custom settings and optionally save a preset

Example: carbon-now {{[-i|--interactive]}} {{path/to/file}}
-p, --presetboolean

Create images from a previously saved preset

Example: carbon-now {{[-p|--preset]}} {{preset}} {{path/to/file}}
-s, --startboolean

Start at a specified line of text

Example: carbon-now {{[-s|--start]}} {{line}} {{path/to/file}}
-e, --endboolean

End at a specific line of text

Example: carbon-now {{[-e|--end]}} {{line}} {{path/to/file}}

Examples (8)

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

Create images interactively for custom settings and optionally save a preset

carbon-now [-i|--interactive] path/to/file

Create images from a previously saved preset

carbon-now [-p|--preset] preset path/to/file

Start at a specified line of text

carbon-now [-s|--start] line path/to/file

End at a specific line of text

carbon-now [-e|--end] line path/to/file

Open image in a browser instead of saving

carbon-now --open path/to/file
made by @shridhargupta | data from tldr-pages