2

I often need to add a stacktrace to issue. Manually adding spaces to pasted lines is not comfortable. How to do this other way than manually?

3

You can surround code and other fixed-width content with three backticks in GitHub Flavoured Markdown like this:

```
stack trace here
```

The official name for it is called code fencing.

In addition, you can do syntax highlighting on code if necessary like this:

```js
console.log('This code will be highlighted properly on GitHub');
```
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.