

ID: 57
Viewed: 5007
Added: Dec 09, 2001
Version:



Snippet uploaded by: snippet
Written By: snippet
Demo: Sorry, no demo



Thank you for your vote. Please wait...
It appears you already voted for this snippet
It appears your vote value was empty


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.
<!---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 Comments to show


Please completely fill out the form below if you want to review this snippet. All reviews are subject to validation.
Adding your comment. Please wait...
Thanks for adding your comment!. After further review it will be added.
There was a problem adding your comment. Please try again.
Please complete all the fields in the form before sending.