I want to add that one of the requirements for posting a question on Stack Overflow is that the question should demonstrate that you've done some research on the topic. You should say what you've tried.
Questions where the question-asker just says "My codez is broke, plz can sumbody hlp me!" are not really the type of questions that we're looking for on this site.
From the Stack Overflow FAQ:
You should only ask practical, answerable questions based on actual problems that you face.
Stack Overflow is for professional and enthusiast programmers, people who write code because they love it. We feel the best Stack Overflow questions have a bit of source code in them, but if your question generally covers …
- a specific programming problem
- a software algorithm
- software tools commonly used by programmers
- practical, answerable problems that are unique to the programming profession
… then you’re in the right place to ask your question!
If you haven't narrowed down your problem to a section of your code, then the community will most likely have some very difficult questions for you regarding your personal dedication to solving the problem. While it is possible to have larger scoped problems, it's important to come with lots of details and be prepared to post them.
The editor for posting responses doesn't seem like the right place to place the scripts and HTML.
If you're referring to comments, then you are absolutely correct. Both questions and answers have an edit link below them where you -- and even other users -- can edit the question or answer to add more detail. This allows you to easily and clearly convey the requested and required information to the community.
Finally, I want to mention that the system was designed precisely for this type of evolution. Whenever you edit your question, it gets bumped back up to the top of the queue on the main page so that others know that your post has been updated. This not only is designed to mold your question into something great, but also it keeps the question visible so that it gets the most possible attention from our community.