more docs

This commit is contained in:
cozis
2022-05-05 19:38:13 +02:00
parent 8dd480e43b
commit f9b5a66b87
2 changed files with 7 additions and 32 deletions
+7
View File
@@ -56,6 +56,13 @@ The HTML comes with no styling. If you want to apply a CSS to it, you can provid
This will basically add a `<style>` element with the contents of the `style.css` file before the normal HTML output.
### --prefix
By the fault, all of the HTML class names are prefixed with `c2h-` to avoid namespace collisions. You can change the prefix using the `--prefix` option, like this:
```sh
./c2html --input file.c --output file.html --prefix myprefix-
```
in which case, identifiers will be generated with the `myprefix-identifier` class name instead of the usual `c2h-identifier`.
## Using the library
The library only exports one function
```c