PDA

View Full Version : Change font color for php syntax


imported_infitech
04-09-2006, 10:00 PM
Add this code at the top of showthread.php
<?
ini_set('highlight.string', '#FFFFFF');
ini_set('highlight.comment', '#FFFFFF');
ini_set('highlight.keyword', '#FFFF00');
ini_set('highlight.bg', '#FFFFFF');
ini_set('highlight.default', '#FFFFFF');
ini_set('highlight.html', '#FFFFFF');
?>

DrewM
04-10-2006, 10:55 AM
what does this do? And Why not use plugins?

puertoblack2003
04-10-2006, 11:24 AM
need more info or a screen shot

imported_infitech
04-10-2006, 01:13 PM
what does this do? And Why not use plugins?
It changes the color of the php syntax highlight since it is an automatic serverside setting set in the php.ini file on your server.

Snake
04-10-2006, 06:27 PM
Not bad, well done! ;)

Mystics
04-12-2006, 09:31 AM
Just use the plug-in hook bbcode_create :)
ini_set("highlight.bg","#CCCCCC");
ini_set("highlight.comment","#DDCCCC");
ini_set("highlight.default","#9393F2");
ini_set("highlight.html","#000000");
ini_set("highlight.keyword","#5DC95D");
ini_set("highlight.string","#F35B5B");