Skip to main content
OwnDocs

Inline Code

1 min readStableBeginner

Use backticks for inline code like npm run dev or next.config.mjs. Variable names like searchIndex and file paths like app/globals.css also render with inline code styling.

Quick Start

A single inline code span.

Run npm run dev to start the server.

Adding Options

Multiple inline code spans in one sentence.

Set THEME_VARIANT in .env.local, then restart npm run dev.

Advanced

Inline code inside prose, lists, and headings.

Inline code in headings

  • The searchIndex is built from lib/search-index.ts.
  • Use Cmd+K to open search.
  • The app/globals.css file holds theme variables.

Options

`code`marker

Wraps the inline code content in backticks.

Was this page helpful?