MyBB Community Forums
Change PHP syntax highlight colors - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Community Archive (https://community.mybb.com/forum-106.html)
+--- Forum: Archived Forums (https://community.mybb.com/forum-143.html)
+---- Forum: Archived Development and Support (https://community.mybb.com/forum-155.html)
+----- Forum: MyBB 1.6 (https://community.mybb.com/forum-138.html)
+------ Forum: 1.6 General Support (https://community.mybb.com/forum-127.html)
+------ Thread: Change PHP syntax highlight colors (/thread-120047.html)



Change PHP syntax highlight colors - Chao - 2012-06-06

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.


RE: Change PHP syntax highlight colors - Nathan Malcolm - 2012-06-06

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


.php   phpcolors.php (Size: 1.04 KB / Downloads: 341)


RE: Change PHP syntax highlight colors - Chao - 2012-06-06

(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.


RE: Change PHP syntax highlight colors - laie_techie - 2012-06-08

I seem to recall a GeSHi plugin which uses CSS classes, so you can modify the colors based on theme.


RE: Change PHP syntax highlight colors - labrocca - 2012-06-08

http://php.net/manual/en/misc.configuration.php