Change Syntax-Highlight Order

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
User avatar
Capricorn
Posts: 63
Joined: Fri Aug 06, 2010 11:37 am
Location: Germany!
Contact:

Change Syntax-Highlight Order

Post by Capricorn »

Hi,

I've got a problem with the syntax highlighter when using PHP Code inside Script-Tags.
Image

The PHP Code isn't highlighted, even if there are no quotes in front of it (like document.write("<?php ... ?>").
I hope you understand my problem. The Debugging tools of RapidPHP always give false alarm.
Denyer
Posts: 2
Joined: Mon Aug 08, 2011 11:02 am

Re: Change Syntax-Highlight Order

Post by Denyer »

Is there a response to this? I also find this a little irritating

Cheers,
Denyer
Gatis
Blumentals Software Developer
Posts: 545
Joined: Sun Mar 05, 2006 12:30 am
Location: Latvia

Re: Change Syntax-Highlight Order

Post by Gatis »

Hi,

Do you mean the problem is that PHP syntax highlighter does not work inside Script block?
Kind regards,
Gatis Avots
Elygen
Posts: 49
Joined: Wed Oct 12, 2005 4:55 am

Re: Change Syntax-Highlight Order

Post by Elygen »

Yes i do believe that is what he means. I've learned to deal with it.
Denyer
Posts: 2
Joined: Mon Aug 08, 2011 11:02 am

Re: Change Syntax-Highlight Order

Post by Denyer »

I realise this is a bit old but wondered if there was any chance anyone had looked into this

Cheers,
Denyer
mikaudio
Posts: 4
Joined: Wed Sep 12, 2012 12:47 pm

Re: Change Syntax-Highlight Order

Post by mikaudio »

What if you put line# 9 after line# 10, into an echo""; statement (in your screenshot)?
Does it work anyway?
User avatar
Karlis
Site Admin
Posts: 3605
Joined: Mon Jul 15, 2002 5:24 pm
Location: Riga, Latvia, Europe
Contact:

Re: Change Syntax-Highlight Order

Post by Karlis »

I am looking into this right now... sorry for the year-long wait...

.. you can either modify the parser add the following lines at the bottom od the phpparser.dat

Code: Select all

sjsnormal  <?                        shtmlPHP   tphptag    SaveState
sjsnormal  <?php                     shtmlPHP   tphptag    SaveState
shtmlJSval  <?                       shtmlPHP   tphptag    SaveState
shtmlJSval  <?php                    shtmlPHP   tphptag    SaveState
or wait for version 2014.

If there are highlighting problems, you can always try to fiddle with the parser .dat files, though it is very very complex if you are new to this format... there is an article in the help system though.
Karlis Blumentals
Blumentals Software
www.blumentals.net
Post Reply