Skip to content
This repository was archived by the owner on Mar 7, 2023. It is now read-only.

skanehira/code2img

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

code2img

code2img can generate image of source code. This was inspired by carbon and silicon

Features

  • Doesn't need browser & Internet
  • Copy image of source code to clipboard
  • Supported some color schemes
  • Supported some languages

Usage

$ code2img
code2img - generate image of source code

Version: 1.2.0

Usage:
  $ code2img -t monokai main.go main.png
  $ echo 'fmt.Println("Hello World")' | code2img -ext go -t native -o sample.png
  $ code2img -c main.go

  -t    color theme(default: solarized-dark)
  -o    output file name(default: out.png)
  -c    copy to clipboard
  -l    print line
  -ext  file extension

Requirements

  • xclip (if copy image to clipboard in linux)

Installtion

$ git clone https://github.com/skanehira/code2img
$ cd code2img && go install

Author

skanehira

About

generating images of source code

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages