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?

1 Answer 1


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:

console.log('This code will be highlighted properly on GitHub');

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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