Tutorial - Custom PHP syntax highlighting colors.

by HaVoK - 07-02-2016, 05:25 PM
Member
Prime
Posts:
166
Joined:
Feb 2015
Likes:
6
Credits:
3
Reputation:
7
2 Years of Service
#1
OP
Posted: 07-02-2016, 05:25 PM (This post was last modified: 07-02-2016, 09:53 PM by HaVoK.)
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:

Please register or login in order to unlock hidden content.


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

Credits to crazy4cs.
Active Member
Posts:
385
Joined:
Aug 2015
Likes:
6
Credits:
8
Reputation:
3
2 Years of Service
#2
Posted: 07-02-2016, 06:09 PM
Any pictures available? I am curious how it looks Tongue might use it myself
Member
Prime
Posts:
115
Joined:
Aug 2015
Likes:
3
Credits:
1
Reputation:
23
2 Years of Service
#3
Posted: 07-02-2016, 09:39 PM
(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".
Member
Prime
Posts:
166
Joined:
Feb 2015
Likes:
6
Credits:
3
Reputation:
7
2 Years of Service
#4
OP
Posted: 07-02-2016, 09:52 PM (This post was last modified: 07-02-2016, 09:52 PM by HaVoK.)
(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
Active Member
Posts:
385
Joined:
Aug 2015
Likes:
6
Credits:
8
Reputation:
3
2 Years of Service
#5
Posted: 07-02-2016, 11:19 PM
(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. 
­
Posts:
4,231
Joined:
Jan 2015
Likes:
110
Credits:
6,520
Reputation:
95
2 Years of Service
#6
Posted: 08-02-2016, 07:42 AM
This is very useful, have used it a few times before.
The last reply on this thread is older than a month. Please do not unnecessarily bump it.
Register an account or login to reply
Create an account
Create a free account today and start posting right away. It only takes a few seconds.
Login
Log into an existing account.
1 Guest(s)