Code in Lists
Embed code blocks within ordered or unordered lists to create step-by-step tutorials, guides, or instructions with code examples.
Syntax
Indent code blocks with 4 spaces (or 1 tab) to nest them within list items:
1. First step description
```bash
command here
```
2. Second step description
Example
Installation Steps
Follow these steps to set up your development environment:
-
Install Node.js and npm on your system
node --version npm --version -
Clone the repository to your local machine
git clone https://github.com/example/project.git cd project -
Install project dependencies
npm install -
Configure environment variables by creating a
.envfilecp .env.example .env -
Start the development server
npm run dev -
Open your browser and navigate to
http://localhost:3000