diff options
author | 2022-04-28 19:00:06 +0200 | |
---|---|---|
committer | 2022-04-28 19:00:06 +0200 | |
commit | fa1dd4058e8606f165df5ff7902d9215eeec4679 (patch) | |
tree | ae8e04c8a8c0f34a82472ecb1f465daa5db414e1 /pydis_site | |
parent | Update discord-messages-with-colors.md (diff) |
Using static images
Diffstat (limited to 'pydis_site')
-rw-r--r-- | pydis_site/apps/content/resources/guides/python-guides/discord-messages-with-colors.md | 8 | ||||
-rw-r--r-- | pydis_site/static/images/content/discord_colored_messages/ansi-colors.png | bin | 0 -> 33579 bytes | |||
-rw-r--r-- | pydis_site/static/images/content/discord_colored_messages/result.png | bin | 0 -> 13740 bytes |
3 files changed, 4 insertions, 4 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 c8e50d71..6845ce76 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 @@ -48,17 +48,17 @@ I simply use `\u001b[0;40m` (background color) and `\u001b[1;32m` (text color) a 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<br> +\`\`\`ansi \u001b[0;40m\u001b[1;32mThat's some cool formatted text right?<br> -or<br> +or \u001b[1;40;32mThat's some cool formatted text right?<br> \`\`\` Result: - + The way the colors look like on Discord is shown in the image below: - + Note: If the change as not been brought to you yet, or other users, then you can use other code blocks in the meantime to get colored text. See this gist: <https://gist.github.com/matthewzring/9f7bbfd102003963f9be7dbcf7d40e51> 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 Binary files differnew file mode 100644 index 00000000..32af146f --- /dev/null +++ b/pydis_site/static/images/content/discord_colored_messages/ansi-colors.png diff --git a/pydis_site/static/images/content/discord_colored_messages/result.png b/pydis_site/static/images/content/discord_colored_messages/result.png Binary files differnew file mode 100644 index 00000000..a666804e --- /dev/null +++ b/pydis_site/static/images/content/discord_colored_messages/result.png |