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

If I do

<code>FILE_ATTRIBUTE_TEMPORARY</code>

like in this question then I get the underscores replaced with italics (at least in the preview), and I have to escape it with backslashes. I can see the logic for ordinary text, but for code? Is it because there's no other way do it?

share|improve this question
up vote 7 down vote accepted

Indent 4 spaces!

You can also click the little code button above the editor, or press CTRL+K with the code selected to do the same.

See:

http://meta.stackoverflow.com/editing-help

Which is linked from

  • the little [?] icon above the editor
  • the full reference » link in the sidebar when asking or editing

EDIT: I realized I didn't fully answer your question. For tiny code snippets you can use backtick to escape things to code like_this_here:

`like_this_here`

Anyway, we disable intra-word emphasis in Markdown, so what you're seeing in the preview is not in fact true in the final post.

share|improve this answer
    
It looks like one user has figured out how to disable intra-word emphasis in markdown: meta.stackexchange.com/questions/30869 Any chance you'll use that code? It seems to be the most common preview vs. rendered bug to come up here on MSO. – Kip Nov 30 '09 at 17:46

Part of your problem is that Javascript markdown preview doesn't match the rendered result. For example intra_word_characters don't actually need to be escaped, even though the markdown preview implies that they do.

share|improve this answer

You must log in to answer this question.

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