MyBB Community Forums

Full Version: Change PHP Code Color
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How I change the PHP Code color? The default is blue (#0000BB).

MyBB 1.8.22 (localhost)

[Image: qan15UM.png]
The color style is generated in here => https://github.com/mybb/mybb/blob/featur...L999-L1077
I need to edit the file. Confused

However, I am not finding the code # 0000BB to add another color.
PHP MyCode colors bases on a PHP internal function for highlighting with pre-defined definitions.
Check the PHP function: https://www.php.net/manual/de/function.h...string.php

You just can't change the colors within MyBB!
It needs to be changed by PHP itself, so the pre-processor has to be setup with other color definitions.

This can be done by...
- fixing new values in configuration file php.ini
- at runtime using PHP method "ini_set(highlight...)".

[ExiTuS]
... see also replies here => MyBB : php syntax colors
Now I understood why I wasn't finding the color code. Thank you all very much for the clarifications.