MyBB Tutorials

Tutorial - Custom PHP syntax highlighting colors.

Submitted by HaVoK, , Thread ID: 17943

Thread Closed
07-02-2016, 05:25 PM
This post was last modified: 07-02-2016, 09:53 PM by HaVoK
#1
Most of those who are on shared hosts doesn't happen or find a way to change them. And they are hardly visible if you have dark themes. Here's an easy way to change them which I used when I was a shared hosting user long ago. Moreover I saw a similar thread today so wrote a quick tutorial.

Open showthread.php (You can find it in your root directory, i.e. where index.php, etc, files are located).

After:

Content locked
This content has been locked. Please login or register in order to unlock it.


Edit the above colors with your choice and save the file. Now you should have the custom highlighting colors.

Credits to crazy4cs.

RE: Tutorial - Custom PHP syntax highlighting colors.

#2
Any pictures available? I am curious how it looks Tongue might use it myself

RE: Tutorial - Custom PHP syntax highlighting colors.

#3
07-02-2016, 06:09 PM
redd Wrote:
Any pictures available? I am curious how it looks Tongue might use it myself

Yeah I second this, I'd really like a preview of the outcome of making these modifications. Syntax highlighting looks amazing, doesn't it also transfer over to "code" and not just "php".

RE: Tutorial - Custom PHP syntax highlighting colors.

OP
This post was last modified: 07-02-2016, 09:52 PM by HaVoK
#4
07-02-2016, 09:39 PM
Noah Wrote:
07-02-2016, 06:09 PM
redd Wrote:
Any pictures available? I am curious how it looks Tongue might use it myself

Yeah I second this, I'd really like a preview of the outcome of making these modifications. Syntax highlighting looks amazing, doesn't it also transfer over to "code" and not just "php".

I have test forums that I tend to do codes on, I don't really prefer this myself.

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

RE: Tutorial - Custom PHP syntax highlighting colors.

#5
07-02-2016, 09:52 PM
HaVoK Wrote:
07-02-2016, 09:39 PM
Noah Wrote:
07-02-2016, 06:09 PM
redd Wrote:
Any pictures available? I am curious how it looks Tongue might use it myself

Yeah I second this, I'd really like a preview of the outcome of making these modifications. Syntax highlighting looks amazing, doesn't it also transfer over to "code" and not just "php".

I have test forums that I tend to do codes on, I don't really prefer this myself.

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

Thats just the coding not a preview. Would you mine making a screenie :Tongue am really interested in this.

RE: Tutorial - Custom PHP syntax highlighting colors.

#6
This is very useful, have used it a few times before.

Users browsing this thread: 2 Guest(s)