MyBB Tutorials

Tutorial - Custom PHP syntax highlighting colors.

Submitted by HaVoK, , Thread ID: 17943

Thread Closed
HaVoK
Member
Level:
1
Reputation:
7
Posts:
160
Likes:
93
Credits:
117
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.

redd
Active Member
Level:
0
Reputation:
-1
Posts:
363
Likes:
9
Credits:
60
07-02-2016, 06:09 PM
#2
Any pictures available? I am curious how it looks Tongue might use it myself

RE: Tutorial - Custom PHP syntax highlighting colors.

Noah
Member
Level:
0
Reputation:
25
Posts:
121
Likes:
10
Credits:
7
07-02-2016, 09:39 PM
#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.

HaVoK
Member
Level:
1
Reputation:
7
Posts:
160
Likes:
93
Credits:
117
OP
07-02-2016, 09:52 PM
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.

redd
Active Member
Level:
0
Reputation:
-1
Posts:
363
Likes:
9
Credits:
60
07-02-2016, 11:19 PM
#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.

Addicted
Freak
Divine
Level:
0
Reputation:
105
Posts:
2.77K
Likes:
130
Credits:
9.94K
08-02-2016, 07:42 AM
#6
This is very useful, have used it a few times before.

Users browsing this thread: 1 Guest(s)