PHP Colour Coding

Post your questions and problem reports here

Moderator: kfury77

Forum rules
Please try to follow these guidelines. This will help to receive faster and more accurate response.
  • Check the Support section of the corresponding product first. Chances are you will find your answer there;
  • Do not create new topics for already reported problems. Add your comments to the existing topics instead;
  • Create separate topic for each problem request. Do NOT post a number of non-related problem reports in a single topic;
  • Give your topic a meaningful title. Titles such as "A question," "Bug report" and "Help!" provide others no clue what your message is about;
  • Include the version number of the software you are using;
  • This is not an official customer support helpdesk. If you need a prompt and official response, please contact our support team directly instead. It may take a while until you receive a reply in the forum;
Post Reply
Mike77
Posts: 14
Joined: Thu May 05, 2005 9:35 am

PHP Colour Coding

Post by Mike77 »

Hi Karlis

Is there a possibility to display all the code between <?php and ?> with a background color?

There is an Option in:
Options/Preferences/Text Editor/Colors/HTML in PHP/ => ASP in HTML

What i need is the same for PHP but only a background, not a style for all the code between, because there are also functions etc, which has their own style :)

Image

Thank you,
Mike
There are only two, great PHP-Editors, Homesite and Rapid PHP :)
Mike77
Posts: 14
Joined: Thu May 05, 2005 9:35 am

Found

Post by Mike77 »

Ok one thing more i found out :)

To give all the php-code a background, just go to Options/Preferences/Text Editor/Colors/HTML in PHP/ and change all items starting with PHP...
the same background color.

Simple if you know it :)

Mike
There are only two, great PHP-Editors, Homesite and Rapid PHP :)
User avatar
Karlis
Site Admin
Posts: 3605
Joined: Mon Jul 15, 2002 5:24 pm
Location: Riga, Latvia, Europe
Contact:

Post by Karlis »

To be true, I did not know this myself. :o
Karlis Blumentals
Blumentals Software
www.blumentals.net
Guest

Post by Guest »

It seems that even if you do this, certain characters are not highlighted with the correct background, notably:

-
!

characters,

as well as the TAB character.
User avatar
Karlis
Site Admin
Posts: 3605
Joined: Mon Jul 15, 2002 5:24 pm
Location: Riga, Latvia, Europe
Contact:

Post by Karlis »

Right you are.
Karlis Blumentals
Blumentals Software
www.blumentals.net
dustinb
Posts: 5
Joined: Thu Feb 02, 2006 9:05 pm

Color Coding PHP

Post by dustinb »

Anyone notice things like this break the color coding?

$theQuestionId = ${"questionId$j"};

or

$theQuestionId = ${'questionId' . $j};
User avatar
Karlis
Site Admin
Posts: 3605
Joined: Mon Jul 15, 2002 5:24 pm
Location: Riga, Latvia, Europe
Contact:

Post by Karlis »

Ok, thanks, will take a look at this.
Karlis Blumentals
Blumentals Software
www.blumentals.net
Post Reply