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:

  1. Install Node.js and npm on your system

    node --version
    npm --version
    
  2. Clone the repository to your local machine

    git clone https://github.com/example/project.git
    cd project
    
  3. Install project dependencies

    npm install
    
  4. Configure environment variables by creating a .env file

    cp .env.example .env
    
  5. Start the development server

    npm run dev
    
  6. Open your browser and navigate to http://localhost:3000