6

Possible Duplicate:
Syntax highlighting language hints
Changes to syntax highlighting

I just asked a question on SO Facebook API scope and it's refusing to do a syntax highlight on my PHP code.

Is there anything extra required other than four spaces before each code line?

asked Sep 8, 2011 at 22:18
0

1 Answer 1

14

As announced in 2010 and specified on the Markdown Help Page, you have to either to tag with php or use one of the prettify language codes (<!-- language: lang-php -->) before the code.

E.g.

<!-- language: php -->
 // This is some PHP
 phpinfo();

https://github.com/google/code-prettify

answered Sep 8, 2011 at 22:24
1
  • Adding <?php at the beginning break formatting. Commented Oct 26, 2018 at 15:07

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.