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.
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!!!