PHP code background color

TopStyle has been discontinued and support is no longer available. The forum is read-only. NOTE: TopStyle was not developed by the makers of CSS HTML Validator.
Locked
davros
Rank 0 - Newcomer
Posts: 1
Joined: Fri Nov 16, 2012 4:03 pm

PHP code background color

Post by davros »

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
Posts: 506
Joined: Sat Jun 13, 2009 12:38 pm
Contact:

Re: PHP code background color

Post by TopStyle Support »

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
Posts: 2
Joined: Mon Aug 05, 2013 8:38 am

Re: PHP code background color

Post by gabba »

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
Posts: 2
Joined: Tue May 31, 2016 2:57 pm

Re: PHP code background color

Post by gazzerman »

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
Posts: 295
Joined: Fri Jul 29, 2005 5:55 pm
Location: CO
Contact:

Re: PHP code background color

Post by Lou »

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
Posts: 2
Joined: Tue May 31, 2016 2:57 pm

Re: PHP code background color

Post by gazzerman »

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. :(
Locked