PHP strings highlight improvements

Let us know what you would like to see in the next version of this software

Moderator: kfury77

Forum rules
Please follow these guidelines when posting feature requests. This will help to increase the value of your contribution.
  • Do not create new topics for already requested features. Add your comments to the existing feature request topics instead;
  • Create separate topic for each feature suggestion. Do NOT post a number of non-related feature suggestions in a single topic;
  • Give your topic a meaningful title. Do NOT create topics with meaningless titles, such as "My Suggestion" or "My Problem".
Please note that we DO READ all suggestions, even if a reply is not posted. Thanks!
Post Reply
ggiunta
Posts: 12
Joined: Mon Jun 27, 2005 12:47 pm

PHP strings highlight improvements

Post by ggiunta »

- use a different color for escaped chars inside double quuoted PHP strings, e.g. "\n"

- highlight php keywords TRUE and FALSE
User avatar
Karlis
Site Admin
Posts: 3605
Joined: Mon Jul 15, 2002 5:24 pm
Location: Riga, Latvia, Europe
Contact:

Post by Karlis »

Yes, TRUE and FALSE are PHP reserwed. I'll try to add them in the next update.

Will see if anything can be done with the escaped chars...

Thanks for your suggestions. :wink:
Karlis Blumentals
Blumentals Software
www.blumentals.net
ScotDiddle
Posts: 20
Joined: Fri Jun 17, 2005 4:33 pm
Location: Richmond VA, United States of America
Contact:

PHP strings highligt improvements

Post by ScotDiddle »

Hi Karlis, I am new to web programming, and try stuff which may, or may not, work... I tried to include some PHP logic inside of some JavaScript. What I wanted to do in this case worked, however, I thought that I was on the wrong track because the PHP code ( including <?php ) inherited the colors of the JavaScript code, leading me to believe that what I was trying to do was not supported.... I could not find a way around what I wanted to do, so I coded what I hoped would work, and it did... I found it confusing because the PHP code did not inherit PHP colors... I would like to see PHP colors remain wherever <?php ... ?> coding is used, regardless of surrounding tags, in a future release. Thanks. Scot
...No Digital... None of the Time...
User avatar
Karlis
Site Admin
Posts: 3605
Joined: Mon Jul 15, 2002 5:24 pm
Location: Riga, Latvia, Europe
Contact:

Post by Karlis »

ScotDiddle, yes, you can use PHP in combination with JavaScript, however curently it is not possible for us to technically implement PHP coloring inside JavaScript which is inside HTML code. I hope we will be able to work this out in the future.
Karlis Blumentals
Blumentals Software
www.blumentals.net
Tecktron
Posts: 27
Joined: Wed Apr 10, 2013 5:17 am

Re: PHP strings highligt improvements

Post by Tecktron »

This is so old I'm not sure why it hasn't made it in yet, it should be standard.
So here is my vote on this.

Add color options to key terms in the code like: false, true, null?
Also the ability to set if these terms should be uppercase or lowercase (and auto-correct to those settings).
EG: type true and have it auto change to TRUE. Or the opposite depending on the setting (or ignore if I'm in a string of course).

Bonus would be to also add boldface (or other highlighting options) to the predefined php constants (EG: JSON_HEX_QUOT).
Post Reply