From 3d2c7dad8264c395926ab62a550dc6560cadbc5d Mon Sep 17 00:00:00 2001 From: Jan Niklas Hasse Date: Mon, 25 Nov 2019 00:38:27 +0100 Subject: [PATCH] Enable syntax highlighting in README.adoc (#13) --- README.adoc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.adoc b/README.adoc index d139fbd..6d083c1 100644 --- a/README.adoc +++ b/README.adoc @@ -63,7 +63,7 @@ To use, just `#include ` A parser for a single option can be created like this: -[source] +[source,cpp] ---- int width = 0; auto cli = cli_parser() @@ -74,7 +74,7 @@ auto cli = cli_parser() You can use this parser directly like this: -[source] +[source,cpp] ---- auto result = cli.parse( { argc, argv } ); if ( !result ) @@ -90,7 +90,7 @@ Note that exceptions are not used for error handling. You can combine parsers by composing with `|`, like this: -[source] +[source,cpp] ---- int width = 0; std::string name;