|
1 c2html - Formats source code using HTML. |
|
2 |
|
3 Build Instructions: |
|
4 |
|
5 1. Download and install UCX (https://ucx.sourceforge.io) |
|
6 2. Run ./configure --release |
|
7 3. Run make (produces c2html binary in build directory) |
|
8 4. Or run make lib (produces include dir and static lib in dist directory) |
|
9 |
|
10 Usage of binary file: |
|
11 c2html [Options] FILE |
|
12 |
|
13 Options: |
|
14 -h Prints help message |
|
15 -j Highlight Java instead of C source code |
|
16 -o <output> Output file (stdout, if not specified) |
|
17 -H <header> Prepend header file |
|
18 -F <footer> Append footer file |
|
19 -p Disable highlighting (plain text) |
|
20 -l Disable line numbers |
|
21 -V, -v Prints version and exits |
|
22 |
|
23 Usage of static library: |
|
24 |
|
25 1. Copy the contents of the dist directory to your project. |
|
26 2. Include c2html.h and use one of the functions declared in this header |
|
27 3. Link against the libc2html.a |