1

So even yesterday (14/09/12), I could add comments with code embedded between them using the ` key. But now, it doesn't seem to work anymore. Is this an intentional removal?

5

Are you referring to this comment?

Try this for your error handler: ` or die (mysql_error());`, then tell us the result.

Yeah. For some reason, they aren't parsed into <code> tags when there are spaces around them within comments, but do so just fine in answers. I escaped them above for illustration; here's the same comment in the answer field without the escape characters:

Try this for your error handler: or die (mysql_error());, then tell us the result.

I'm not sure if this is a bug or by design though. Maybe one of the devs can shed some light on this.

  • thanks a lot Daniel! Also, how did you know it was that one? – Lucas Sep 16 '12 at 7:08
  • 1
    @think123: I just skimmed through your comment activity and that particular one caught my eye. – BoltClock's a Unicorn Sep 16 '12 at 7:09
  • Yep that should be right. I'll mark it as the accepted answer when I can. – Lucas Sep 16 '12 at 7:10
  • I guess this is by design. If you want to use backticks inside Markdown code, then you start with a group of backticks and a space, and close with the same thing backwards. I guess that's why the space still is special in mini Markdown too, though in comments one needs to escape the backtick to show it in code. – Arjan Sep 16 '12 at 8:21
  • I only play a dev on TV, but yeah, this is bydesign (and the same holds true for the []() link syntax) – Tim Stone Sep 16 '12 at 14:18
  • @Tim Stone: Is this applicable only to comments and not posts? That entire question revolves around Markdown in comments, but Jeff didn't mention if it was applicable to posts as well... – BoltClock's a Unicorn Sep 16 '12 at 14:26
  • Yeah, posts are unaffected. – Tim Stone Sep 16 '12 at 14:27

You must log in to answer this question.

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