Skip to content

Commit 224aead

Browse files
authored
Merge pull request #5814 from Rageking8/set-cmake-code-block-language-to-txt-as-a-fallback
Set CMake code block language to `txt` as a fallback
2 parents f40afb4 + 5cd8542 commit 224aead

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/build/cmake-presets-vs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ Instead, enable and disable AddressSanitizer by setting the required compiler an
443443

444444
You can add the following sample to *`CMakeLists.txt`* to enable or disable AddressSanitizer for a target:
445445

446-
```cmd
446+
```txt
447447
option(ASAN_ENABLED "Build this target with AddressSanitizer" ON)
448448
449449
if(ASAN_ENABLED)

docs/build/cmake-projects-in-visual-studio.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ When you build for Windows using the MSVC compiler, CMake projects have support
153153

154154
When you build for Windows with the MSVC compiler, CMake projects have support for Edit and Continue. Add the following code to your *`CMakeLists.txt`* file to enable Edit and Continue.
155155

156-
```
156+
```txt
157157
if(MSVC)
158158
target_compile_options(<target> PUBLIC "/ZI")
159159
target_link_options(<target> PUBLIC "/INCREMENTAL")

0 commit comments

Comments
 (0)