You Are Here: Home »   Code Tuesday January 6th 2009

Code Library - php

Highlight Syntax - (1416 views)


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