diff --git a/doc/api/repl.md b/doc/api/repl.md
index 20fffe3fb59c5c..84b82ec8d6d56f 100644
--- a/doc/api/repl.md
+++ b/doc/api/repl.md
@@ -35,7 +35,7 @@ feature set.
The following special commands are supported by all REPL instances:
* `.break`: When in the process of inputting a multi-line expression, enter
- the `.break` command (or press **Ctrl+C**) to abort
+ the `.break` command (or press Ctrl+C) to abort
further input or processing of that expression.
* `.clear`: Resets the REPL `context` to an empty object and clears any
multi-line expression being input.
@@ -45,7 +45,8 @@ The following special commands are supported by all REPL instances:
`> .save ./file/to/save.js`
* `.load`: Load a file into the current REPL session.
`> .load ./file/to/load.js`
-* `.editor`: Enter editor mode (**Ctrl+D** to finish, **Ctrl+C** to cancel).
+* `.editor`: Enter editor mode (Ctrl+D to finish,
+ Ctrl+C to cancel).
```console
> .editor
@@ -63,11 +64,12 @@ welcome('Node.js User');
The following key combinations in the REPL have these special effects:
-* **Ctrl+C**: When pressed once, has the same effect as the `.break` command.
+* Ctrl+C: When pressed once, has the same effect as the
+ `.break` command.
When pressed twice on a blank line, has the same effect as the `.exit`
command.
-* **Ctrl+D**: Has the same effect as the `.exit` command.
-* ``: When pressed on a blank line, displays global and local (scope)
+* Ctrl+D: Has the same effect as the `.exit` command.
+* Tab: When pressed on a blank line, displays global and local (scope)
variables. When pressed while entering other input, displays relevant
autocompletion options.
@@ -246,14 +248,15 @@ added: v13.6.0
-->
The REPL supports bi-directional reverse-i-search similar to [ZSH][]. It is
-triggered with **Ctrl+R** to search backward and **Ctrl+S** to search
+triggered with Ctrl+R to search backward and
+Ctrl+S to search
forwards.
Duplicated history entires will be skipped.
Entries are accepted as soon as any button is pressed that doesn't correspond
-with the reverse search. Cancelling is possible by pressing **Esc** or
-**Ctrl+C**.
+with the reverse search. Cancelling is possible by pressing Esc or
+Ctrl+C.
Changing the direction immediately searches for the next entry in the expected
direction from the current position on.
@@ -379,8 +382,10 @@ added: v0.7.7
-->
The `'exit'` event is emitted when the REPL is exited either by receiving the
-`.exit` command as input, the user pressing **Ctrl+C** twice to signal `SIGINT`,
-or by pressing **Ctrl+D** to signal `'end'` on the input stream. The listener
+`.exit` command as input, the user pressing Ctrl+C twice
+to signal `SIGINT`,
+or by pressing Ctrl+D to signal `'end'` on the input
+stream. The listener
callback is invoked without any arguments.
```js
@@ -611,7 +616,8 @@ changes:
* `repl.REPL_MODE_STRICT` to evaluate expressions in strict mode. This is
equivalent to prefacing every repl statement with `'use strict'`.
* `breakEvalOnSigint` {boolean} Stop evaluating the current piece of code when
- `SIGINT` is received, such as when `Ctrl+C` is pressed. This cannot be used
+ `SIGINT` is received, such as when Ctrl+C is pressed.
+ This cannot be used
together with a custom `eval` function. **Default:** `false`.
* `preview` {boolean} Defines if the repl prints autocomplete and output
previews or not. **Default:** `true` with the default eval function and
diff --git a/doc/api_assets/style.css b/doc/api_assets/style.css
index af170888be8f38..6bfeeaf3310e90 100644
--- a/doc/api_assets/style.css
+++ b/doc/api_assets/style.css
@@ -572,6 +572,14 @@ td > *:last-child {
margin-bottom: 0;
}
+kbd {
+ font-size: 1.2em;
+ font-weight: 700;
+ border-radius: 3px;
+ padding: 1px 2px 0;
+ border: 1px solid black;
+}
+
.changelog > summary {
margin: .5rem 0;
padding: .5rem 0;