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 1 year ago
JSON representation
Convert C source code to a PNG image
- Host: GitHub
- URL: https://github.com/8dcc/c2png
- Owner: 8dcc
- License: gpl-3.0
- Created: 2023-11-09T20:27:05.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-01-01T10:08:48.000Z (over 1 year ago)
- Last Synced: 2025-01-01T11:20:11.684Z (over 1 year ago)
- Topics: libpng, source-to-image, syntax-highlighting
- Language: C
- Homepage:
- Size: 56.6 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.org
- License: LICENSE
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.
[[file:assets/main.png]]