diff --git a/doc/guides/investigating_native_memory_leak.md b/doc/guides/investigating_native_memory_leak.md
index 8e58854007b789..f0a156286e3e5f 100644
--- a/doc/guides/investigating_native_memory_leak.md
+++ b/doc/guides/investigating_native_memory_leak.md
@@ -366,7 +366,7 @@ line number:
This new output shows us exactly where the leak is occurring in the file `hello.cc`:
-```C++
+```cpp
6 void* malloc_holder = nullptr;
7 napi_value Method(napi_env env, napi_callback_info info) {
8 napi_status status;
diff --git a/doc/guides/writing-and-running-benchmarks.md b/doc/guides/writing-and-running-benchmarks.md
index eca55bf4edf2ea..5f630ccc1f805d 100644
--- a/doc/guides/writing-and-running-benchmarks.md
+++ b/doc/guides/writing-and-running-benchmarks.md
@@ -59,7 +59,7 @@ package managers or download it from .
The R packages `ggplot2` and `plyr` are also used and can be installed using
the R REPL.
-```R
+```console
$ R
install.packages("ggplot2")
install.packages("plyr")
@@ -71,7 +71,7 @@ selected first, specify a mirror by adding in the repo parameter.
If we used the "" mirror, it could look something
like this:
-```R
+```r
install.packages("ggplot2", repo="http://cran.us.r-project.org")
```
diff --git a/src/README.md b/src/README.md
index 2604c4aefa3ae7..a3a6a71aa55544 100644
--- a/src/README.md
+++ b/src/README.md
@@ -910,7 +910,7 @@ Node.js provides a few macros that behave similar to `assert()`:
The `OnScopeLeave()` function can be used to run a piece of code when leaving
the current C++ scope.
-```c++
+```cpp
static void GetUserInfo(const FunctionCallbackInfo& args) {
Environment* env = Environment::GetCurrent(args);
uv_passwd_t pwd;