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?

1
  • 3
    Any examples?
    – animuson StaffMod
    Sep 16, 2012 at 7:04

1 Answer 1

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.

6
  • thanks a lot Daniel! Also, how did you know it was that one?
    – Lucas
    Sep 16, 2012 at 7:08
  • 1
    @think123: I just skimmed through your comment activity and that particular one caught my eye. Sep 16, 2012 at 7:09
  • 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, 2012 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, 2012 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... Sep 16, 2012 at 14:26
  • Yeah, posts are unaffected.
    – Tim Stone
    Sep 16, 2012 at 14:27

You must log in to answer this question.

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