creates images of code snippets .
like any other go program:
go install github.com/juliusmh/snippit@latest
The font used is RobotoMono. Currently, this is fixed. The default render resolution
is pretty low, given the default line height of 17. In order to increase resolution
use the -scale X
flag (default X=1). To see all available options use the -help
flag.
Syntax highlighting is performed by chroma. For a list of all styles I recommend xyproto/splash's demo page. For a list of all lexers checkout chroma/lexers.
snippit -l -w testdata/test.go
-l
To show line numbers-w
To show window
snippit -l -w -bw 0 -style solarized-light testdata/test.yaml
-bw
Border Width zero (hide border)-style
Apply stylesheetsolarized-light
snippit -br 0 -style xcode-dark testdata/test.py
-br
Border Radius zero
- Filename in window header (decoration)
- SVG output option