code highlighting errors? 
Posted: 20th March 2010 01:40 AM

when I combine html and php, the code ist not coloured correctly (the colors switch to black), thought the code is working.

So maybe there is an error in the code-editor of rapidweaver 4.

Example:
<form name="<?php echo $PHP_self; ?>” method="post" action="">

from METHOD the letters are coloured black....

Does somebody know help?

Thanky you!

#1.  Posted: 20th March 2010 03:35 AM
Adrian Grund - 20 March 2010 01:40 AM

when I combine html and php, the code ist not coloured correctly (the colors switch to black).....So maybe there is an error in the code-editor of rapidweaver 4.

I don’t know. I never thought much about the coloring.

Compared it to Smultron and Taco HTML and all three handle the coloring differently.

ZZ60BEB14B.jpg

Phil

 Signature 

Check out the Stacks for the Stacks Plugin.
Table Stacks, SideBoxes, Flash Stacks, Stacks Stacks, Image Stacks.........

#2.  Posted: 20th March 2010 08:33 AM
Phil Warrender - 20 March 2010 03:35 AM
Adrian Grund - 20 March 2010 01:40 AM

when I combine html and php, the code ist not coloured correctly (the colors switch to black).....So maybe there is an error in the code-editor of rapidweaver 4.

I don’t know. I never thought much about the coloring.

Compared it to Smultron and Taco HTML and all three handle the coloring differently.

ZZ60BEB14B.jpg

Phil

Hello Phil, thank you for your quick answer. Problem is, that i am sure, that this is a programm error in rapidweaver in the code-parsing part, because all of the following code to this line of code i mentioned is highlithed wrong (e.g. black). So I think rapidweaver has problems to parse code an show the right color when this code contains parts of html, like brackets <>, eg.
, and so on.
If all where black, I would not complain about it, but so the code becomes really confusing. Please try this:

<?php

$error=$_GET['error'];
echo ("".$error."");

//look: from here the code color changes in an unknown way…
$selfname=$PHP_SELF;
echo "<form name=".$selfname." method='post' action=".$selfname."_check.php>";
echo "<label for='myemail'>eMail-Adresse:</label> <input name='myemail' type='text' id='myemail' />";
echo "<label for='mypassword'>Passwort:</label> <input name='mypassword' type='password' id='mypassword' />";
echo "<input type='submit' name='submit' value='Anmelden' />";
echo "</form>";
?>

Even the <?php in the beginning and the ?> have different color, so I think rapidweaver handles it different and is making mistakes with the parsing: If raidweaver would “realize” that the last line of code ?> is php, it would colour it e.g. red and not black, wouldn´t it?

By the way: IS ITI POSSIBLE TO SET UP A DIFFERENT CODE EDITOR, e.g. like TACO, TO EDIT HTML AND PHI IN RAPIDWEAVER? Would be great. How can i do that?

Thank you much!!!

#3.  Posted: 20th March 2010 04:31 PM
mindwalker - 20 March 2010 08:33 AM

Even the <?php in the beginning and the ?> have different color, so I think rapidweaver handles it different and is making mistakes with the parsing: If raidweaver would “realize” that the last line of code ?> is php, it would colour it e.g. red and not black, wouldn´t it?

You are correct, there are mistakes and they make editing more difficult.

mindwalker - 20 March 2010 08:33 AM

By the way: IS ITI POSSIBLE TO SET UP A DIFFERENT CODE EDITOR, e.g. like TACO, TO EDIT HTML AND PHI IN RAPIDWEAVER? Would be great. How can i do that?

No, I don’t believe there’s any way to do that.

You can put in a feature request with RealMac but I doubt this will rank very high on their priority list.

Very Best,
Phil

 Signature 

Check out the Stacks for the Stacks Plugin.
Table Stacks, SideBoxes, Flash Stacks, Stacks Stacks, Image Stacks.........