Skip to content

Commit 2c92760

Browse files
authored
Add command to show how to use backticks for code formatting (#7)
1 parent 260bc51 commit 2c92760

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

app/bot/config.yml

+16
Original file line numberDiff line numberDiff line change
@@ -85,3 +85,19 @@ commands:
8585
[Create a Feature Request](https://github.com/mealie-recipes/mealie/discussions/new?category=feature-request)
8686
[Open Feature Requests](https://github.com/mealie-recipes/mealie/discussions/categories/feature-request)
8787
[Not a Feature Request? Submit an Issue!](https://github.com/mealie-recipes/mealie/issues/new/choose)
88+
89+
- command: "mealie-code-formatting"
90+
description: "Show how to use backticks for code formatting on Discord"
91+
content: |
92+
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.
93+
94+
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.
95+
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.
96+
97+
```
98+
This is
99+
an example of what
100+
the end result might look like.
101+
```
102+
103+
Oh, and you can also edit prior messages so you can add this retrospectively to your previous messages if needed!

0 commit comments

Comments
 (0)