aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site
diff options
context:
space:
mode:
authorGravatar Krypton <[email protected]>2022-04-28 19:17:00 +0200
committerGravatar Krypton <[email protected]>2022-04-28 19:17:00 +0200
commite3067dc451a3a5da02a90d61791c1c7c5731cab0 (patch)
treead94295f599001f48cc2b2047e533463533abb00 /pydis_site
parentUsing static images (diff)
Removed `<br>`'s and used code block for raw message
Diffstat (limited to 'pydis_site')
-rw-r--r--pydis_site/apps/content/resources/guides/python-guides/discord-messages-with-colors.md15
-rw-r--r--pydis_site/static/images/content/discord_colored_messages/ansi-colors.pngbin33579 -> 43004 bytes
2 files changed, 9 insertions, 6 deletions
diff --git a/pydis_site/apps/content/resources/guides/python-guides/discord-messages-with-colors.md b/pydis_site/apps/content/resources/guides/python-guides/discord-messages-with-colors.md
index 6845ce76..9a69973e 100644
--- a/pydis_site/apps/content/resources/guides/python-guides/discord-messages-with-colors.md
+++ b/pydis_site/apps/content/resources/guides/python-guides/discord-messages-with-colors.md
@@ -44,15 +44,18 @@ Here is the list of values you can use to replace `{color}`:
* 47: White
Let's take an example, I want a bold green colored text with the very dark blue background.
-I simply use `\u001b[0;40m` (background color) and `\u001b[1;32m` (text color) as prefix. Note that the order is **important**, first you give the background color and then the text color.<br>
+I simply use `\u001b[0;40m` (background color) and `\u001b[1;32m` (text color) as prefix. Note that the order is **important**, first you give the background color and then the text color.
+
Alternatively you can also directly combine them into a single prefix like the following: `\u001b[1;40;32m` and you can also use multiple values. Something like `\u001b[1;40;4;32m` would underline the text, make it bold, make it green and have a dark blue background.
-Raw message:<br>
-\`\`\`ansi
-\u001b[0;40m\u001b[1;32mThat's some cool formatted text right?<br>
+Raw message:
+````nohighlight
+```ansi
+\u001b[0;40m\u001b[1;32mThat's some cool formatted text right?
or
-\u001b[1;40;32mThat's some cool formatted text right?<br>
-\`\`\`
+\u001b[1;40;32mThat's some cool formatted text right?
+```
+````
Result:
diff --git a/pydis_site/static/images/content/discord_colored_messages/ansi-colors.png b/pydis_site/static/images/content/discord_colored_messages/ansi-colors.png
index 32af146f..d7176393 100644
--- a/pydis_site/static/images/content/discord_colored_messages/ansi-colors.png
+++ b/pydis_site/static/images/content/discord_colored_messages/ansi-colors.png
Binary files differ