so it will be:
text
code
text
code
etc..
Everythign will be stored in a database, and I'm wondering if anyone has any advice for me..
Also, this will be the function I use for parsing the code..
Code: Select all
<?php
function phpHighlight($code)
{
$code = "<?php\n".$code."\n?>";
$code = stripslashes($code);
$code = highlight_string($code, true);
$code = explode('<br />', $code);
//put a table here and echo the code
}
?>