Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 158 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 often find the need to post an image in an answer to help summarize my point. I have used these before to demonstrate things such as CSS properties, as shown in this answer. I added the code that the picture was displaying as an alternate text. I was thinking that it would be cool if I could somehow display this in the markdown format. It could be a command like


Or it could be like code is formatted now

![    alternatetext][1]

I realize that there is probably an option to wrap them in backslashes, but this isn't as effective.

share|improve this question
If you're putting source code in an image, you should rethink. What's wrong with writing "transition: <property> <duration> <type> <delay>, for example transition: all .5s ease-in-out 1s" – Eric Apr 24 '13 at 22:56
@Eric the picture is very clear and to the point – Cody Guldner Apr 25 '13 at 2:16
Also, even in the given example people who can actually see the image might still want to copy that text, or search bots might want to index it. And on mobile, the image might be shown much smaller. I agree with @Eric here. – Arjan Apr 25 '13 at 4:47
up vote 8 down vote accepted

The alternate text there actually gets placed in the alt attribute for the image (which only gets displayed when the image cannot be rendered) and cannot be formatted with HTML. So no, there's no way to do this (or any other kind of formatting).

share|improve this answer

You must log in to answer this question.

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