Hoe highlight met <?

Gestart doorDaiman4 reacties56 weergaven

5 berichten · pagina 1 van 1

Daiman

Lid · Topicstarter

Berichten
5.795
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
hey one2xs

ik ben bezig met een script

<FORM METHOD="post" ACTION="?id=2" >
<DIV>
<textarea NAME="code" TYPE="textarea" > </textarea><br>
<INPUT TYPE="submit" VALUE="laat zien">
</DIV>
</FORM>

<br>
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR]id[COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]2[/COLOR][COLOR= #007700]) {[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]Uw code : <br></br>[/COLOR][COLOR= #007700];[/COLOR] [URL="http://www.php.net/highlight_string"]highlight_string[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR]code[COLOR= #007700]]); 
}[/COLOR]
?>[/code]

dat is de code

maar met [COLOR= #0000BB]<?php[/COLOR] highlight hij hem wel en met [COLOR= #0000BB]<?[/COLOR] niet

hoe kan ik dat oplossen[COLOR= #007700]?[/COLOR]
0
Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
highlight_string($_POST[code], 1)
maar

LOL
bug biggrin
0
Daiman

Lid · Topicstarter

Berichten
5.795
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
het bugt een beetje als je
[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/highlight_string"]highlight_string[/URL] ?>


gebruikt confused het forum

edit gemeld in bugs
0
Berichten
1.168
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Ja, ik zag de bug ook al.
Ik zet het even in bugs categorie.
0
Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
nee w8
er staat
moet [code] :D
0

Jouw reactie

Deel je idee, stel een vraag of help een ander verder.

Editor laden…

Praat mee met de One2xs-community.

Inloggen om te reageren