matsuyoshi30 / Germanium
Licence: mit
Generate image from source code
Stars: ✭ 115
Programming Languages
go
31211 projects - #10 most used programming language
Germanium
Germanium is an alternative to Carbon and Silicon implemented in Go.
Germanium can work without browser and internet like Silicon.
Usage
germanium
USAGE:
germanium [FLAGS] [FILE]
FLAGS:
-o, --output <PATH> Write output image to specific filepath [default: ./output.png]
-b, --background <COLOR> Background color of the image [default: #aaaaff]
-f, --font <FONT> Specify font eg. 'Hack-Bold'
-l, --language <LANG> The language for syntax highlighting eg. 'go'
--list-fonts List all available fonts in your system
--no-line-number Hide the line number
--no-window-access-bar Hide the window access bar
Example
Generate image From file
germanium -o main.png main.go
Generate image From Stdin (need to add option -l
or --language
)
cat main.go | germanium -l go -o main.png -
Generate image without line number
germanium --no-line-number -o main.png main.go
Generate image without window control bar
germanium --no-window-access-bar -o main.png main.go
Install
GitHub releases
You can download from here.
Arch Linux
yay germanium
Build from source
git clone https://github.com/matsuyoshi30/germanium
cd germanium && go install
Requirements
- go1.16
LICENSE
Author
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].