Maybe the post template should include a code example

Apparently I’m not the first person with this idea, but we’re getting a lot of posts from new people who are asking for code help but don’t know how to format their code for the forum. It would probably be a good idea to include a sample code block in the “new topic” template.

3 Likes

What’s worse is the template has single-line code blocks for the question.

### Godot Version
`Replace this line with your Godot version`

### Question
`Ask your question here! Try to give as many details as possible`

So people will type out all their information in a single monospace line and worse yet paste images as unclickable links or failed uploads.

This would be a better template with minimal changes.

### Godot Version
`Replace this line with your Godot version`

### Question
Ask your question here! Try to give as many details as possible

```
# Paste any code here
```


I see some people try to explain how to paste code, seems relevant so: you can post three ticks without creating a code block by using the back slash \

\```gd
\# example of an example code paste
func my_test() \-> void:
    print(\"test\")
\```

turns into:

```gd
# example of a code paste
func my_test() -> void:
    print("test")
```

Which then turns into:

# a code paste
func my_test() -> void:
    print("test")
7 Likes