Author Topic: HOWTO change background color of PHP content?  (Read 10126 times)

roy

  • Junior Community Member
  • Posts: 2
  • Hero Points: 0
HOWTO change background color of PHP content?
« on: July 13, 2006, 09:49:12 PM »
Using Win32 - SlickEdit Version 10.0.3

== example.php ==
<?php
  set_time_limit(0);
?>
== end example.php

The background color is gray, similar to selection color. How do I change the bg color in this context?  I looked at "Color" and "Color Coding", but could not find a setting that affects the background color between <?php ?>.

Any help is greatly appreciated,
Roy


jbezem

  • Community Member
  • Posts: 87
  • Hero Points: 8
Re: HOWTO change background color of PHP content?
« Reply #1 on: July 14, 2006, 06:08:07 AM »
I do not know PHP at all, but I could reproduce your problem.
Try the following: Goto Tools -> Options -> Color..., select 'Set embedded language color', the backgroung goes to grey, set it to white (or whatever), and select 'Sync backgrounds'. Update all you want to have a white background, probably all. Then OK/Apply.
If you have a SE version before 11.x, the 'sync backgrounds' is probably not available, so you'll have to change several background colors yourself.

HTH,

Johan Bezem

Dennis

  • Senior Community Member
  • Posts: 3993
  • Hero Points: 520
Re: HOWTO change background color of PHP content?
« Reply #2 on: July 14, 2006, 02:46:59 PM »
Johan is correct that you need to set the embedded language color.  PHP is an intrinsically embedded language, since the host page is always HTML or XML.  It is an unfortunate side-effect of the way the language evolved.

In fact, in SlickEdit, the "php" extension simply refers to "html".  If you want to make changes to actual PHP editing settings, you need to select "phpscript".

roy

  • Junior Community Member
  • Posts: 2
  • Hero Points: 0
Re: HOWTO change background color of PHP content?
« Reply #3 on: July 14, 2006, 04:51:30 PM »
Thanks for your help! It worked like a charm. With version 10, I had to go through every item in the list, but it is worth it! Editing embedded PHP is hard on my eyes with the default gray background. I switched to a soft cream color (255,255,235) background and replaced all white foreground colors with gray (192,192,192).

Roy