MyBB Community Forums

Full Version: Change PHP syntax highlight colors
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello MyBB!

I have a question for y'all. So I want to change the PHP syntax highlight color and for now I don't have server access. So I can't access my php.ini file to change these colors. Is it in any other way I can do this? I mean through .htaccess or PHP?

To those who wonder, I mean the colors in the PHP tags.
I've uploaded a simple plugin to do just that. Simply edit the values in the plugin file (Already commented), upload to ./inc/plugins/ and activate. Smile

[attachment=26472]
(2012-06-06, 08:21 PM)Nathan Malcolm Wrote: [ -> ]I've uploaded a simple plugin to do just that. Simply edit the values in the plugin file (Already commented), upload to ./inc/plugins/ and activate. Smile

Haha, this is fantastic! I always thought I needed the php.ini but this was much much more easier. Thanks Nathan, I appreciate it.
I seem to recall a GeSHi plugin which uses CSS classes, so you can modify the colors based on theme.