From 2c9276041c2a66fdad454fe7412befee2b505fb9 Mon Sep 17 00:00:00 2001 From: boc-the-git <3479092+boc-the-git@users.noreply.github.com> Date: Tue, 13 Feb 2024 16:04:27 +1100 Subject: [PATCH] Add command to show how to use backticks for code formatting (#7) --- app/bot/config.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/app/bot/config.yml b/app/bot/config.yml index 57dac87..f924293 100644 --- a/app/bot/config.yml +++ b/app/bot/config.yml @@ -85,3 +85,19 @@ commands: [Create a Feature Request](https://github.com/mealie-recipes/mealie/discussions/new?category=feature-request) [Open Feature Requests](https://github.com/mealie-recipes/mealie/discussions/categories/feature-request) [Not a Feature Request? Submit an Issue!](https://github.com/mealie-recipes/mealie/issues/new/choose) + + - command: "mealie-code-formatting" + description: "Show how to use backticks for code formatting on Discord" + content: | + When pasting code or log snippets (including docker-compose files) it's very important to maintain the original formatting of them; primarily for ease of use, but also because the whitespace can be meaningful. + + The best way to do that is to wrap the text inside 3 backticks. Backtick (`) is the character generally to the left of the 1 on your keyboard. + You would type 3 backticks, then a new line, then paste in your code, then go to another new line and enter another 3 backticks. + + ``` + This is + an example of what + the end result might look like. + ``` + + Oh, and you can also edit prior messages so you can add this retrospectively to your previous messages if needed!