What is meta? ×
Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 131 Stack Exchange communities.

I have 5 pages of code as a part of my question. How can show it? I would not be interested to post it as such. Also, it's code generated by a framework. Hence I don't want to edit it. Should I use pastebin or something similar?

share|improve this question
3  
Why do you think anyone wants to wade through 5 pages of code? Can't you come up with a SSCCE? –  psubsee2003 Oct 24 '13 at 10:04
2  
You can read this possible duplicate along with the question linked to it. –  dcaswell Oct 24 '13 at 10:07
4  
And if it's code that is generated by a framework, perhaps it's better to share what you put into the generation? (Don't know the exact scenario here, so it might not apply) –  Bart Oct 24 '13 at 10:08
1  
Another possible duplicate: where to paste large blocks of code / text? –  Time Traveling Bobby Oct 24 '13 at 10:16

3 Answers 3

up vote 15 down vote accepted

All necessary info of a question should be in the question itself. If the code segment is too big for a Stack Overflow question then the scope of your question is too big as well.

Reduce it to the very core so people don't have to review pages of code.

That takes effort. But we want questions be helpful to future visitors and that can only be possible if one can see the problem with a quick read.

share|improve this answer

Also, it's code generated by a framework

In this case, you could describe the framework you used and the parameters you supplied to auto-generate the code. Then other people can reproduce the problem without you needing to post an un-holy amount of code in your question.

It's quite possible your problem has been caused by incorrect use of the framework, which would only be apparent once you explain how you used it.

(Just noticed Bart commented on this already)

share|improve this answer

Why you want to show 5 pages of code?

  • Is there an issue on the code?
    • If Yes, try to debug and post only "buggy part of the code"
    • If No, don't post it
  • If you want to understand the code then refer link of java/.net/php/... site link directly and explain it clearly on the question
share|improve this answer

You must log in to answer this question.

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