PHP code highlighting in Javascript <script> tags

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
andrispp
Posts: 21
Joined: Thu Apr 27, 2006 9:00 am

PHP code highlighting in Javascript <script> tags

Post by andrispp »

Hello,
How can I make RapidPHP correctly highlight php code which is between javascript <script> tags ?
User avatar
Karlis
Site Admin
Posts: 3605
Joined: Mon Jul 15, 2002 5:24 pm
Location: Riga, Latvia, Europe
Contact:

Post by Karlis »

Currently highlighting is working only for one primary script at a time.
Karlis Blumentals
Blumentals Software
www.blumentals.net
zissakos
Posts: 4
Joined: Tue Mar 28, 2006 5:29 pm

Post by zissakos »

actually, syntax highlighting is not the real problem. i miss the auto complete when i am inside a string inside a php function. the program thinks it's just a string so it doesn't offer any auto completion.

especially when i write

echo '<table c

i would like to have the auto complete to popup and offer me "cellspacing"... etc. as if i was entering ordinary html code.

is it possible to do that?
User avatar
Karlis
Site Admin
Posts: 3605
Joined: Mon Jul 15, 2002 5:24 pm
Location: Riga, Latvia, Europe
Contact:

Post by Karlis »

There has been such idea and we need time to think it over. Most likely with the time this will get implemented.
Karlis Blumentals
Blumentals Software
www.blumentals.net
cdomigan
Posts: 10
Joined: Thu Jun 29, 2006 4:22 am

Post by cdomigan »

How can I make RapidPHP correctly highlight php code which is between javascript <script> tags ?
I'm writing a lot of code like this at the moment, where my javascript is dynamically created in php. Having php syntax highlighting within <script> tags would be incredibly useful!

+1 vote for this feature :)

Chris
User avatar
syrupcore
Top Contributor
Posts: 917
Joined: Thu Jul 21, 2005 12:58 am
Location: Portland, Oregon, usa
Contact:

Post by syrupcore »

consider using external javascript files called by php. it will keep your code cleaner in the end anyway.
Post Reply