프로젝트
GitHub에서 보기
matsuyoshi30/germanium
소개
Generate image from source code
디자인 및 미디어측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- -1
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalGermanium
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'
-s, --style <STYLE> The style for syntax highlighting eg. 'dracula'
-c, --clip Copy image to clipboard
--list-styles List all available styles for syntax highlighting
--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
--font-size <SIZE> Change the font size [default: 24px]
-v, --version Show Version
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 with another style (you can get a list of them with --list-styles)
germanium -s solarized-dark -o main.png main.go
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
Generate image and copy to clipboard
germanium --no-window-access-bar -o main.png main.go -c
Install
GitHub releases
You can download from here.
Arch Linux
yay germanium
Build from source
git clone https://github.com/matsuyoshi30/germanium
cd cmd/germanium && go install
Requirements
- Go (1.17 or 1.18)
Related Projects
- denops-germanium.vim is a Vim/Neovim plugin for germanium by skanehira.
- germanium.el is a Emacs package for germanium.
LICENSE
Author
관련 프로젝트 살펴보기
불러오는 중…