Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/8dcc/c2png

Convert C source code to a PNG image
https://github.com/8dcc/c2png

libpng source-to-image syntax-highlighting

Last synced: about 2 months ago
JSON representation

Convert C source code to a PNG image

Awesome Lists containing this project

README

        

#+title: c2png
#+options: toc:nil
#+startup: showeverything
#+author: 8dcc

*Convert C source code to a PNG image.*

#+TOC: headlines 2

* Building

#+begin_src console
$ git clone https://github.com/8dcc/c2png
$ cd c2png
$ make
...
#+end_src

* Usage

#+begin_src console
$ ./c2png
...
#+end_src

* Credits

Font:
- [[https://github.com/slavfox/Cozette][slavfox/Cozette]]
- [[https://sourceforge.net/projects/bdf2c/][bdf2c]] ([[https://github.com/pixelmatix/bdf2c][GitHub fork]])

Syntax highlighting:
- [[https://github.com/Theldus/kat][Theldus/kat]]

* Output

This is the output of converting the =src/main.c= file itself.

[[https://user-images.githubusercontent.com/29655971/282262399-2adb57f4-1580-4727-8ceb-c08302fa68e9.png]]