09
 

Code

To create inline code, wrap with backticks `.

To create a code block, either indent each line by 4 spaces, or place 3 backticks ``` on a line above and below the code block.

Inline `code`

    indent 4 spaces

```
Or use 3 backticks
```
  • More

    A code block or span displays every character inside exactly as it was typed.

    Close
  • More

    Remember, one level of indentation in a code block equals 4 spaces or one tab.

    Close
  • More

    An indented code block continues until it reaches a line that is not indented.

    Close
  • More

    3 backticks on a single line ``` marks the beginning and end of a code block.

    This is sometimes called a “code fence”.

    Close

Format only the math in this sentence as inline code:

 

Format the score table as an indented code block:

 

Format this code using the code fence method:

 

Nested Lists