Expand description
CodeSnap is a tool to generate beautiful snapshots of your code snippets. It’s a pure Rust library that provides a simple API to create snapshots of code snippets with syntax highlighting, line numbers, and custom themes.
§Quick start
CodeSnap::default()
.code(
CodeBuilder::default()
.language("rust")
.content(CODE_SNIPPET)
.build()?,
)
.watermark(WatermarkBuilder::default().content("CodeSnap").build()?)
.build()?
.create_snapshot()?
.copy()Now try to paste the code snapshot to your friends!
/_/
( -.- ) If you enjoy CodeSnap, also try Silicon