Snippet details
ID: 57
Viewed: 1990
Added: 2001-12-09
Version:
Sorry no demo
makes it so you can show code in color on an htm page. must have the <? ?> tags for it to work.
works with strings or a single file.
General Details
Snippet uploaded by: snippet
Email : webmaster@snippetlibrary.com
Snippet By: snippet
<!---Head--->
none
<!---Body--->
<?
/**
* The following highlight colors are used for
* viewing PHP source. If the viewed page is
* not PHP, then highlight.html will be used.
*/
ini_set("highlight.bg","#CCCCCC");
ini_set("highlight.comment","#666666");
ini_set("highlight.default","#0000CC");
ini_set("highlight.html","#000000");
ini_set("highlight.keyword","#006600");
ini_set("highlight.string","#CC0000");
//uses
highlight_string($your_variable);
show_source(file.php) is an alias for highlight_file().
?>
No Reviews to show
