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

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#>) {
        <#statements#>
    }

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
6  
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
1  
Thanks for the correction. I haven't ever used the snippets feature. –  Randy Howard Mar 27 '13 at 16:12

1 Answer 1

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. –  Shogging through the snow 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 .