You Are Here: Home »   Code Monday March 15th 2010

Code Library - php

Highlight Syntax - (1537 views)


<?
// the phpcode you want to highlight
$code "<?\n";
$code .= "echo \"test\";\n";
$code .= "?>";
highlight_string($code); // highlights the string
?>