wireguard-tools/contrib/highlighter
Jason A. Donenfeld 1e58a0525e highlighter: when subtracting char, cast to unsigned
Windows.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2019-01-31 02:03:10 +01:00
..
gui contrib: introduce simple highlighter library 2019-01-23 14:29:44 +01:00
Makefile contrib: introduce simple highlighter library 2019-01-23 14:29:44 +01:00
README contrib: introduce simple highlighter library 2019-01-23 14:29:44 +01:00
fuzz.c contrib: introduce simple highlighter library 2019-01-23 14:29:44 +01:00
highlight.c contrib: introduce simple highlighter library 2019-01-23 14:29:44 +01:00
highlighter.c highlighter: when subtracting char, cast to unsigned 2019-01-31 02:03:10 +01:00
highlighter.h contrib: introduce simple highlighter library 2019-01-23 14:29:44 +01:00

README

wg(8) and wg-quick(8) syntax highlighter library
================================================

highlighter.c contains a simple portable highlighter for the wg(8) and
wg-quick(8) configuration files. Simply copy `highlight.c` and
`highlight.h` into your project wholesale.

As a demo, a simple console highlighter program is included, alongside a
simple Qt5 GUI app to show its usage in realtime.

There is also a basic fuzzer, because why not?

Usage:

    $ make
    $ ./highlight < path/to/tunnel.conf

    $ make gui
    $ ./gui/highlight

    $ make fuzz
    $ ./fuzz -workers=$(nproc) -jobs=$(nproc) ./corpus