I want to insert a long console dump in my answer. It would be best if the text is scrollable. How do I get around the "feature" that lines in SE posts need to end in 2 spaces?
What is meta?
- Any Stack Exchange user can ask a question
- The community provides support, votes on ideas, and reports bugs
- Your voice helps shape the way Stack Exchange operates
Paste the text into your question/answer and select it with the mouse.
Then click the code button from the toolbar. All your text will be given code formatting and the line breaks preserved.
This will also make the text scrollable if you insert a really long dump.
Please don't use regular HTML
If you're pasting long code, then select it all and format it as code, as demonstrated in Seth's answer. The keyboard shortcut for that is Ctrl+K.
If what you're pasting isn't code (such as compiler output, log messages, or a custom data format), then use regular HTML to format it instead of running it through the code highlighter. Put