Prerequisites
- I know there are lots of questions and duplicates that explain that comments won't support code blocks and full-functional formatting.
- It is also declared that comments are used as a thing to clarify/improve the question.
Typical use-case
- The question contains not a full code fragment.
- I try to reproduce it, write my own code.
- The problem does not reproduce yet, I've got different results in my code.
- I want to show what I've written to OP to let him compare his code with mine.
- I need to have code formatting (and other formatting, like headers, lists etc).
- Obviously this is not yet an answer, this is a step in question clarification process. For this purpose, the comments exist.
- If I will post it as an answer, it will be fairly flagged as "Not an answer".
The question is
What is the correct behaviour in this case?
- Still post a formatted code as an answer?
- Any additional advices how to mark it as "not yet an answer"?
- Post code to some outer place (GitHub etc) and post a link to it in a comment?
- I don't like it too much since it will force the readers to switch between SO and other site.
- Contact the OP out of the answer discussion and ask him to post my options into the question.
- There are unfortunately no direct messages on SO, and there is a logical "keep all discussions accessible for everyone" reason.
- Something else?