PHP highlight syntax broken

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
daredare
Posts: 125
Joined: Sun Sep 09, 2007 1:40 pm

PHP highlight syntax broken

Post by daredare »

hi,

when for ex you do a css you can press control+space then you get all the css options + autocomplete, but if you got:

Code: Select all

echo "<div id='error' style='display:block;color:#f44066;height: 14px;font-weight: bold;position:absolute;z-index:'>
the control+ space feature will be disable.
Last edited by daredare on Thu Jul 01, 2010 8:09 pm, edited 1 time in total.
webuilder 2010 version 10.02 (10.0.2.118) is the best !!
daredare
Posts: 125
Joined: Sun Sep 09, 2007 1:40 pm

Re: control+space menu in PHP echo

Post by daredare »

yep i understand not possible, and not logical to implement maybe.
webuilder 2010 version 10.02 (10.0.2.118) is the best !!
daredare
Posts: 125
Joined: Sun Sep 09, 2007 1:40 pm

Re: control+space menu in PHP echo

Post by daredare »

By the way i have discovred some php enclosures that break the highlight syntax when embedding php in html, if webuilder team is interested ill post it.(version wb 2008)
webuilder 2010 version 10.02 (10.0.2.118) is the best !!
daredare
Posts: 125
Joined: Sun Sep 09, 2007 1:40 pm

Re: control+space menu in PHP echo

Post by daredare »

where i pointed HERE , the <?php tag does not show in bold anymore even if the code parse correctly in every browser

Code: Select all

<select name="pays" id="pays" style="width: 204px;margin-bottom: 5px; outline-width:0;">
<?php
$result = mysql_query("SELECT xxxxx_id, pays_xxxxxxx, pays_xxxxxxxx FROM in_xxxxxxx   WHERE pays_actif = '1' ORDER BY pays_nom ASC");
while ($row = mysql_fetch_array ($result) )
{  ?>
    	<option value="<?php echo $row['xxxxxxxx_id']; ?>"

  [b]HERE >>>>[/b]   <?php   if($row['xxxxxx_id'] == $data['emails_xxxxxx'] )
    	{
    	   echo 'selected="selected" ' ;
    	}
	?>><?php echo $row['pays_xxxxxxxxx']; ?></option>
<?php } ?>
</select>
webuilder 2010 version 10.02 (10.0.2.118) is the best !!
User avatar
Karlis
Site Admin
Posts: 3605
Joined: Mon Jul 15, 2002 5:24 pm
Location: Riga, Latvia, Europe
Contact:

Re: PHP highlight syntax broken

Post by Karlis »

Auto complete works only in the highlighted code. It will not work when HTML code is parsed as PHP string.

I can not see any problem in the sample you have posted (I tested on the latest WeBuilder 2010)
Karlis Blumentals
Blumentals Software
www.blumentals.net
daredare
Posts: 125
Joined: Sun Sep 09, 2007 1:40 pm

Re: PHP highlight syntax broken

Post by daredare »

here is a sshot of it, im on WB 2008 maybe it has been solved or maybe this could be of some help. regards. if you look the php entry tag is not bolded.
Image
webuilder 2010 version 10.02 (10.0.2.118) is the best !!
Gatis
Blumentals Software Developer
Posts: 545
Joined: Sun Mar 05, 2006 12:30 am
Location: Latvia

Re: PHP highlight syntax broken

Post by Gatis »

here is a sshot of it, im on WB 2008 maybe it has been solved or maybe this could be of some help. regards. if you look the php entry tag is not bolded.
Hi, if you are using some other font than the default - Courier new, then try to switch it back. For example, some font types might not show you the difference between bold and regular font very well.
Kind regards,
Gatis Avots
Post Reply