1

Say someone asks a question related to HTML/CSS/JavaScript (something that can be done in a code snippet). Someone answers with a line of code that solves the problem.

Is editing the answer to include a code snippet showing the solution in action 1) allowed and 2) a good idea?

I know SO doesn't want edits that don't actually change the answer. The answer here suggests adding code where none exists is OK but that's in reference to a question, not an answer. There was another similar question on Meta (though it was related to adding code to the question, sorry I can't find it now) that said the likelyhood of changing the OP's intent was too high.

0

1 Answer 1

3

No, you should not be adding entirely new content to another user's answer. You can post your own answer (attributing appropriately if you are building on another user's content) if you have your own original content to add. Alternatively you could comment on their post asking them to add additional information if you feel that it is lacking, to which they can optionally add the additional information.

1
  • Never add content which hides the actual solution. It only distracts. I agree with @Servy. Or add a jsfiddle as comment. May 4, 2015 at 16:31

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