problems with php code highlight
-
Hello,
I think I tried all existing code highlight plugins but with all of them I have the same problem:php code like this is parsed by WP 2.04 as html and not als highlighted code:
foreach ($parent_array as $pkey => $pval) {
if (!empty($pval['count'])) {
$menu .= "
<li><a>".$pval['label']."</a></li>
n";
} else {
$menu .= "
<li><a>".$pval['label']."</a></li>
n";
}
}
EDIT: check this image that shows the code, Why? because I have the problem at this blog too!the problems are with list items which are becomming list items other PHP code is parsed well (never has this problem in regular php powered websites).
Which WP filter need be changed? (without loosing protection)?
The topic ‘problems with php code highlight’ is closed to new replies.