9

On many questions, help is asked about how a game has crashed. Following how it happened a long string of java code appears and takes up a large space in the page. Would it be bad to paste the code to a site like pastebin.com and link it or is that frowned upon. Here are some posts to what I'm talking about.

Or is it better to place it as preformatted text like this.

And help or advice in order to better the editing in these types of questions?

1
  • Post has been edited to remove ugly formatting. Perhaps you could link to an older revision? – JamesTheAwesomeDude Dec 19 '13 at 1:20
16

I think the preformatted text or 'code' section handles it fairly nicely. If it gets above a certain length, it automatically adds scrollbars so as not to make the question body too long, whilst also maintaining the full crash log.

paste code, select it and hit the 'code' button or CTRL-K
(Source)

We also prefer our question/answer bodies to have all the information contained on our site, mainly to prevent link-rot, but also to avoid having users click away from the question/answer (and by extension, the site) itself.

Having said that, I don't have anything wrong with lengthy crash logs pasted into pastebin and linked here, but I don't think we should go out of our way to convert ones already here.

So to summarise, if a crash log is:

  • Outside of code blocks: BAD, edit it into code blocks
  • On pastebin: OK, leave alone
  • Inside code blocks: OK, leave alone

Further reading:

1
  • Works for me thanks a lot. – Aaron128l Dec 6 '13 at 17:24

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .