What is meta? ×
Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 133 Stack Exchange communities.

Example: "void*" becomes void (the asterisk is lost). See my comment on Nicholaz's response on http://stackoverflow.com/questions/1763616/ignore-initialization-from-incompatible-pointer-type-warnings

share|improve this question
    
Er.. no it doesn't! Try typing void* or "void*" –  Jeff Atwood Dec 9 '10 at 1:05
    
Really @Jeff? Just now catching up to one-year-old posts? :) (what a backlog you must have!) –  jmfsg Dec 9 '10 at 2:31

3 Answers 3

up vote 2 down vote accepted

Craig is right, but his answer doesn't escape the backticks. He generated his answer:

void*

, by doing this:

`void*`

I know it's a minor thing to complain about, but he does say "surround it ... like this," and the question is already about how to use Markdown.

Incidentally, I made the backticks show up in my answer by putting HTML pre tags around them, like this:

<pre>`void*`</pre>
share|improve this answer
2  
Except that I don't see any backticks. :) –  John Rudy Nov 19 '09 at 17:31
    
Thanks for the explanation. But how do I edit my comment? –  timn Nov 19 '09 at 21:04
    
Interesting. They showed up in the preview box but not the actual post. I think I saw a meta post about that a few days ago. Stand by... –  Pops Nov 19 '09 at 21:27
2  
@timn, unfortunately, you can't edit comments. The best you can do is copy the comment to your clipboard, delete the comment and post a new one with the fix. –  Pops Nov 19 '09 at 21:29
    
@Cigars, meta.stackexchange.com/questions/1227/… shows status-deferred. That's the first time it's happened to me. –  Pops Nov 19 '09 at 21:31
    
@Cigars, I edited the post to avoid that problem altogether. Thanks for the heads-up. –  Pops Nov 19 '09 at 21:37
1  
You can use &gt; and &lt; if you want to use them in tags. Or you could also wrap them in a <pre>. –  Georg Schölly Nov 19 '09 at 22:10
    
@Lord Torgamus: I actually had to look at one of Jeff's recent posts to see exactly how to make it work. (pre tags to the rescue!) I'd been fruitlessly trying to edit your for about 5 minutes ... Saw the answer after I commented and just said the heck with it. :) Thanks for fixing it, though. –  John Rudy Nov 19 '09 at 22:39
    
And I took care of the HTML piece at the end of your post for you. –  John Rudy Nov 19 '09 at 22:40
    
@Cigars, thanks. I thought about fixing the HTML myself but kind of decided it wasn't worth the additional time input anymore. –  Pops Nov 20 '09 at 15:48

When you put code in a comment, surround it with backticks (`), like this:

void*

Then it will be formatted like code and won't apply Markdown.

share|improve this answer
2  
You mean like this*? –  David Locke Nov 19 '09 at 20:37

You don't have to use backticks. You can use a backslash to escape asterisk.

void\*
share|improve this answer
2  
Test with no backslashes: (void) foo. Test with backslashes: *(void*) foo. –  mmyers Nov 19 '09 at 22:45

You must log in to answer this question.

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