To format code on discord, using syntax highlighting, use 3 backticks (`)
- Start with 3 backticks followed by the language without spaces on the first line: ```python
Language name or language extensions are admissible, try and see (py, C, C++, etc.)
- Type your code in the following lines.
Note that the return key will not send the message until the code block is closed.
- End with 3 backticks alone on the closing line: ```
Hello, I get an error in this code in line 4, can someone help me ? ```python # this will appear formatted in python import time while True: pront("Hello World") time.sleep(5) ```
How it looks when you type it:
How it looks once posted: