Ok, Im setting up a small tutorial section for my site that pulls the tutorials from a mysql database…
I have set up a
tag which in php, before echoing searches for the opening and closing tag and makes a div to surround them.
I want to know, how could I have a
```php
tag with php syntax highlighting with it... ive got the function
```php
<?php highlight_string(''); ?>
but im unsure how to add that to my current set up:
[noparse]
<?php
//Code Tags
$bodynew1 = str_replace("
“, “<div class=“codetitle”>Code<div class=“code”>”, “$body”);
$bodynew2 = str_replace(”
", "</div></div>", "$bodynew1");
//PHP Tags
$bodynew3 = str_replace("
```php
", "<div class=\"codetitle\">PHP<div class=\"code\">", "$bodynew2");
$bodynew4 = str_replace("
", “”, “$bodynew3”);
echo $bodynew4; ?>
[/noparse]
how would I add it?
Thanks.