Skip to content

Commit

Permalink
ModMessage: add a codeblock message (#71)
Browse files Browse the repository at this point in the history
* ModMessage: add a codeblock message

Co-authored-by: Jeremy Walker <[email protected]>
  • Loading branch information
IsaacG and iHiD authored Aug 14, 2023
1 parent 1e1e068 commit e466222
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,18 @@
"show off a nice portfolio in the end. Another interesting "
"resource for web development are the MDN web docs: http://developer.mozilla.org/en-US/docs/Learn."
),
"codeblock": (
"To make code easier for everyone to read (and to make you look like a pro), "
"**please use a codeblock when sharing code.**"
"For example, you can type the following:\n\n"
"\\`\\`\\`\nfor number in range(10):\n total += number;\n\\`\\`\\`\n"
"Discord will render that as so:\n"
"```\nfor number in range(10):\n total += number;\n```\n\n"
"You can even get syntax highlighting by adding the language to the codeblock opening:\n"
"\\`\\`\\`python\nfor number in range(10):\n total += number;\n\\`\\`\\`\n"
"Discord will render that as so:\n"
"```python\nfor number in range(10):\n total += number;\n```"
),
}

# track_react.py
Expand Down

0 comments on commit e466222

Please sign in to comment.