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

In the question that I answered, I had two code blocks. The first code block I used tick marks, the second I pressed the icon above the editor { }

The first code block does not receive syntax highlighting and the second one does. Are tick marks not meant for code?

Post a disabled select field PHP

share|improve this question
up vote 12 down vote accepted

This is by design. The backticks are for inline code, usually a single "word". You use it for stuff like root and abstract and enum and live(), etc. It will not appear on its own line unless you force it to.

A whole line of code is better put in the block codeblock--it gets its own line and is syntax highlighted as well.

share|improve this answer
Thank you for your answer. I'll accept it after 11 minutes. – alexy13 Jun 29 '12 at 14:01
@alexy13: Happy to help :) – Manishearth Jun 29 '12 at 14:02

Code between backticks are not highlighted. Only code in code block is highlighted.

share|improve this answer

You must log in to answer this question.

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