0

Am I doing something incorrectly in the following answer: Retrieving all Links from a Post?

In the edit view the code highlights as expected, but in the answer the code is just red.

2 Answers 2

2

Thanks to Jan Fabry, I figured this out. The post was taged "regex", so the syntax highlighting defaulted to regex mode. Jan modified my post so that, just before the code block, there was the following comment tag:

<!-- language: lang-php -->

This reset the highlighting.

0

Add opening <?php tags.

(Why do I have to add extra characters?)

1
  • That didn't solve the problem :( Mar 23, 2011 at 12:59

You must log in to answer this question.

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