Inline Code

Highlight short code snippets or commands with single backticks.

Syntax

How it works

Wrap text with single backticks

`code`

Examples

1

Basic Inline Code

`npm install discord.js`

npm install discord.js

2

Within a sentence

Use the `!ping` command to test latency.

Use the !ping command to test latency.

Back to all Formatting tips