2020-09-09 00:48:40 +01:00
|
|
|
# carbon-now
|
|
|
|
|
|
|
|
> 创建漂亮的代码图片。
|
2021-10-01 19:28:01 +01:00
|
|
|
> 更多信息:<https://github.com/mixn/carbon-now-cli>.
|
2020-09-09 00:48:40 +01:00
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
- 使用默认设置从文件创建图片:
|
2020-09-09 00:48:40 +01:00
|
|
|
|
|
|
|
`carbon-now {{文件}}`
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
- 使用默认设置从剪贴板创建图片:
|
2020-09-09 00:48:40 +01:00
|
|
|
|
|
|
|
`carbon-now --from-clipboard`
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
- 使用默认设置从标准输入创建图片:
|
2020-09-09 00:48:40 +01:00
|
|
|
|
|
|
|
`{{输入}} | carbon-now`
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
- 以交互方式创建图片以进行自定义设置,还可以选择保存预设:
|
2020-09-09 00:48:40 +01:00
|
|
|
|
|
|
|
`carbon-now -i {{文件}}`
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
- 从先前保存的预设创建图片:
|
2020-09-09 00:48:40 +01:00
|
|
|
|
|
|
|
`carbon-now -p {{预设}} {{文件}}`
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
- 从指定的文本行开始:
|
2020-09-09 00:48:40 +01:00
|
|
|
|
|
|
|
`carbon-now -s {{行号}} {{文件}}`
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
- 结束于指定的文本行:
|
2020-09-09 00:48:40 +01:00
|
|
|
|
|
|
|
`carbon-now -e {{行号}} {{文件}}`
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
- 在浏览器中打开图片而不是保存:
|
2020-09-09 00:48:40 +01:00
|
|
|
|
|
|
|
`carbon-now --open {{文件}}`
|