Skip to content

Instantly share code, notes, and snippets.

@Neradoc
Last active August 14, 2021 16:30
Show Gist options
  • Save Neradoc/e173174456017b34fd5d651c8aafa366 to your computer and use it in GitHub Desktop.
Save Neradoc/e173174456017b34fd5d651c8aafa366 to your computer and use it in GitHub Desktop.
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: ```
Example:
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)
```
Thanks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment