From 3107fadd9d5146a0fa25dd82eb04172b5d98d1d8 Mon Sep 17 00:00:00 2001 From: Hunter Kvalevog Date: Sat, 27 Sep 2025 17:38:21 -0500 Subject: --- content/cheatsheets/c_cpp.md | 10 +++++----- hugo.toml | 2 ++ 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/content/cheatsheets/c_cpp.md b/content/cheatsheets/c_cpp.md index 077255e..ad07dab 100644 --- a/content/cheatsheets/c_cpp.md +++ b/content/cheatsheets/c_cpp.md @@ -15,7 +15,7 @@ title = 'C/C++' * [predef wiki](https://github.com/cpredef/predef) ### Platform detection -``` +```c #ifdef _WIN32 // Windows #endif @@ -31,7 +31,7 @@ title = 'C/C++' ``` ### Compiler detection -``` +```c #ifdef __GNUC__ // GCC #endif @@ -46,7 +46,7 @@ title = 'C/C++' ``` ### Architecture detection -``` +```c #if (defined(_MSC_VER) && _M_X64) || (defined(__GNUC__) && __amd64__) // x86-64 #endif @@ -57,7 +57,7 @@ title = 'C/C++' ``` ### GCC pragmas -``` +```c // Push/pop warning state #pragma GCC diagnostic push #pragma GCC diagnostic pop @@ -67,7 +67,7 @@ title = 'C/C++' ``` ### MSVC pragmas -``` +```c // Link against abc.lib #pragma comment(lib, "abc.lib") diff --git a/hugo.toml b/hugo.toml index beb3d11..6ad90e8 100644 --- a/hugo.toml +++ b/hugo.toml @@ -3,3 +3,5 @@ languageCode = 'en-us' title = 'kvog.sh' theme = 'hugo-xmin' +[markup.highlight] +style = "github" \ No newline at end of file -- cgit v1.2.3