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


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.

  • Thank you for your answer. I'll accept it after 11 minutes.
    – alexyorke
    Jun 29 '12 at 14:01
  • 1
    @alexy13: Happy to help :) Jun 29 '12 at 14:02

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

You must log in to answer this question.

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