Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 157 Stack Exchange communities.

What is meta?
Here's how it works:
  1. Any Stack Exchange user can ask a question
  2. The community provides support, votes on ideas, and reports bugs
  3. Your voice helps shape the way Stack Exchange operates

I finally found a solution to my problem. It is mainly based on an other user's answer but it needs some rearrangement to fit to my specific needs. I think about displaying the final code for any potentially interested users but where to put it ?

  • Editing the question to put it at the end does not feel right. We don't want the answers to be in the question. Do we ?
  • Adding an answer is a bit off since the upvotes we could get should be for the OP
  • We could add the final code in a comment on the accepted answer but there will be no code formatting.

So what is the best way to do this? Or could we expect a new dedicated place for the finally used solution.

share|improve this question

I would edit the question. I see no harm in having the answer in the question, really. Indeed, in the past I've seen questions where the questioner has edited them with an "eventual solution" section which talked about multiple original answers being involved.

So clarify what you actually had to do in the question, but accept the answer which provided you the most benefit towards reaching the solution.

share|improve this answer
To be safe, if you have an accepted solution, it might be good to comment in that section that you added a full solution to the question itself, in case people scroll down to find the answer. – D_N Mar 4 '10 at 9:19
You will NEVER need to scroll down to see an answer on this site. – juanformoso Mar 4 '10 at 13:34
@Downvoter It is a good thing to scroll down on old questions because someone may have added an up to date answer which will have low votes. – DrDro Mar 5 '10 at 9:27

I usually add the final code directly to the most useful answer body, mark it as correct, and leave a comment to notify the original author, so he can fix it if he cares.

share|improve this answer
I agree with this solution but it is limited to users who can edit answers. – DrDro Mar 5 '10 at 9:23
Well, since everyone can now suggest edits, this would be the way to go. – Al E. May 11 '12 at 13:47

You must log in to answer this question.

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