Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 157 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

When asking questions on SO that involve Xcode code-snippets, the syntax is to use a #, which makes the code look like it's inside a comment. For example this Xcode standard snippet for looping through an array of objects:

for (<#type *object#> in <#collection#>) {

or this custom-made snippet:

UILabel *<#labelName#> = [[UILabel alloc] initWithFrame:CGRectMake(<#x#>, <#y#>,<#width#>, <#height#>)];

On Stack Overflow all code after the first # will look like its commented out. An example on this bug is shown in this question I have asked on SO about code snippets. More on Xcode snippets here

share|improve this question
This isn't quite a bug; it's just that Xcode isn't supported by the Markdown language highlighter (yet). For now, you could set your snippets to lang-none as a workaround. – Pops Mar 27 '13 at 15:14
Thanks for the correction. I haven't ever used the snippets feature. – Randy Howard Mar 27 '13 at 16:12

This is a limitation of the Objective C highlighter.

If it bothers you, you can turn it off using special HTML comments - I've done this for the example you posted.

share|improve this answer
Would it be possible for the community to submit a patch to said highlighter, and get that implemented on SO? – Richard J. Ross III Mar 27 '13 at 18:30
If you get it into Prettify, it should eventually end up on SO. – Shog9 Mar 27 '13 at 18:37

You must log in to answer this question.

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