如果你需要将代码以图片的形式分享出去的话,以下工具或许可以帮助你
1.Snappify
- Editor - snappify
- Unleash the power of our Editor!
- 直接在中间的代码区域输入代码即可,可能有代码行数和长度限制
- 样图。
- 编辑好后你可以将图片导出,或下载为PDF,有多张图的话可以下载所有幻灯片(此功能需要登录才能使用)
- 注意,在edge中使用时可将网页翻译为中文熟悉操作流程,但你要导出图片时记得将网页还原为英文,这样才能成功,我不知道为什么,可能翻译后导致了网页一些问题。
2.Showcode
- Create beautiful images of code.
- 可以看图操作,这个操作性比较自由,适合自己DIY
- 样图
3.chalk.ist
- Chalk.ist - Create beautiful images of your source code
- Turn your source code into beautiful images
- 这个操作简单,但整个网页是黑色模式,适合晚上使用
- 样图
4.ray.so
- Ray.so - Create beautiful images of your code
- Turn your code into beautiful images. Choose from a range of syntax colors, hide or show the background, and toggle between a dark and light window.
- 和第三个差不多,比第三个还简单,就不过多介绍了
- 样图
5.carbon.now.sh
- Carbon is the easiest way to create and share beautiful images of your source code.
- 简单不过多介绍,直接看样图吧
6.kod.so
- kod.so - Beautiful Code Screenshots
- Generate beautiful screenshots from code snippets in different programming languages. Support REST API and lots of themes, fonts, backgrounds etc.
- 操作简单,一看就懂
- 样图(代码有点问题,编码有点问题)
7.www.codepng.app
- Codepng | Turn your code into PNG images.
- Create beautiful images from your code that you can easily share in social media.
- 操作看图
- 样图
8.codeimg.io
- Create and share beautiful images of your source code.
- 操作看图
- 样图
- OK,介绍完毕,喜欢哪款,就去试试吧