From 94f8f95a26961ce76989360fe42767235e46ed5e Mon Sep 17 00:00:00 2001 From: Wojciech Bartnik Date: Fri, 19 Oct 2018 19:32:40 +0200 Subject: [PATCH] Added syntax highlight (#67) --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 054efb9..b8d9580 100644 --- a/README.md +++ b/README.md @@ -65,7 +65,7 @@ Simply add `enum.h` to your project. class. This seems [difficult to remove][nested]. There is a workaround with `typedef` (or C++11 `using`): - ``` + ```c++ BETTER_ENUM(SomePrefix_Color, uint8_t, Red, Green, Blue) struct triplet { @@ -86,7 +86,7 @@ limited by your compiler's maximum macro argument count. `+` to explicitly promote them to type `Channel`. For example, if you are doing a comparison: - ``` + ```c++ channel == +Channel::Red ```