# Including supplemental code inside a markdown comment

Is there a way to include supplemental code in a math.se post, without necessarily displaying the code as part of an answer - perhaps, as a comment in the markdown itself?

For example, we often see images in posts generated by a short (or even not so short) sequence of computer commands in Mathematica or Matlab or some other tool. The code is typically not immediately relevant the question at hand but might often be of secondary interest to some readers anyway. Thus, it would be nice to be able to make the code available, without being so intrusive as to make it part of the answer.

According to this stackoverflow discussion, this should be possible, but the technique described there doesn't seem to work on math.se.

<!-- this post contains a comment, you could use this in theory, though the discoverability and usability are rather bad -->

• OK, I understand now - thanks! I had actually tried this and it didn't work. After experimenting a bit more, I discovered that the problem was that Mathematica frequently includes the character sequence -> as an option to plot commands. Unfortunately, this ends the HTML comment and whatever comes after spews out onto the page. And, you're right about the usability, particularly if folks under 2000 reputation can't generally see it. Thanks, anyway! – Mark McClure May 7 '13 at 13:03