PHP code background color

Post anything about TopStyle here. NOTE: TopStyle has been discontinued.

Moderator: TopStyle Support

Post Reply
davros
Rank 0 - Newcomer
Rank 0 - Newcomer
Posts: 1
Joined: Fri Nov 16, 2012 4:03 pm

PHP code background color

Post by davros » Fri Nov 16, 2012 4:10 pm

Is there any way to color the background of a block of PHP code? I can change the background color of PHP variables and text but spaces do not change color. I would like to change the background color of any code, spaces, etc from the start <?php tag to the end ?> tag. Similar to how HomeSite did it. Thanks.

User avatar
TopStyle Support
Rank VI - Professional
Rank VI - Professional
Posts: 507
Joined: Sat Jun 13, 2009 12:38 pm
Contact:

Re: PHP code background color

Post by TopStyle Support » Mon Feb 11, 2013 6:56 am

Starting with version 5.0.0.94 here's how to fix this:
1. Options (F8) > Editor > Color Coding
2. Click on the tab labeled "Script"
3. Click on the category labeled "Default"
4. Click on "Background" (or the ellipsis)
5. Pick any color (for example: yellow)
6. Click on the button labeled "OK"
7. Click on the button labeled "Apply"

gabba
Rank 0 - Newcomer
Rank 0 - Newcomer
Posts: 2
Joined: Mon Aug 05, 2013 8:38 am

Re: PHP code background color

Post by gabba » Mon Aug 05, 2013 8:42 am

Not quite the fix I'd hoped for, this method colors all "script" javascript and php rather than separating them, also does not color any whitespace between the two code tags..

gazzerman
Rank 0 - Newcomer
Rank 0 - Newcomer
Posts: 2
Joined: Tue May 31, 2016 2:57 pm

Re: PHP code background color

Post by gazzerman » Tue May 31, 2016 3:01 pm

Has this issue been resolved yet? It makes distinguishing between my PHP and my other html/js code very difficult. The way Homesite used to do it was perfect. Seems like a very simple fix? Also seems strange that it would already not be an option?

User avatar
Lou
Rank V - Professional
Rank V - Professional
Posts: 269
Joined: Fri Jul 29, 2005 5:55 pm
Location: CO
Contact:

Re: PHP code background color

Post by Lou » Tue May 31, 2016 7:27 pm

Check other threads here. TopStyle is no longer being supported. So no this has not been addressed.
Lou
Say what you will about Sisyphus. He always has work.

gazzerman
Rank 0 - Newcomer
Rank 0 - Newcomer
Posts: 2
Joined: Tue May 31, 2016 2:57 pm

Re: PHP code background color

Post by gazzerman » Tue May 31, 2016 11:26 pm

Thanks for letting me know, such a shame its the one thing that just makes it a nightmare to use. Otherwise this is the best one on the market. :(

Post Reply