wireguard-tools/contrib/highlighter
Jason A. Donenfeld d8230ea0dc global: bump copyright
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-01-02 19:52:25 +01:00
..
gui contrib: introduce simple highlighter library 2019-01-23 14:29:44 +01:00
fuzz.c global: bump copyright 2020-01-02 19:52:25 +01:00
highlight.c global: bump copyright 2020-01-02 19:52:25 +01:00
highlighter.c global: bump copyright 2020-01-02 19:52:25 +01:00
highlighter.h global: bump copyright 2020-01-02 19:52:25 +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

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