highlight script

Gestart doorDaiman19 reacties56 weergaven

20 berichten · pagina 1 van 2

Daiman

Lid · Topicstarter

Berichten
5.795
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Ik was bezig met scripten

en heb voor jullie een script gemaakt om de php invoer te highlighten

<html>
<head>

<style type="text/css">
blockquote {
border-style: solid;
height: 600px;
width: 900px;
overflow: auto;
border: 1px solid #666;
background-color: #ccc;
padding: 8px;} 
</style>
<title></title>
</head>
<body>
<form method="post" action="[COLOR= #0000BB]<?php $_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]PHP_SELF[/COLOR][COLOR= #007700]];[/COLOR] ?>">
<textarea name="code" type="textarea" rows="10" cols="100" >
[COLOR= #0000BB]<?php[/COLOR]  [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]code[/COLOR][COLOR= #007700]];[/COLOR] ?>
</textarea>

<br>
<input type="submit" value="laat zien"></div>
</form>
</body>
</html>
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700]) {[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]Uw code : <br></br><blockquote>[/COLOR][COLOR= #007700];[/COLOR] [URL="http://www.php.net/highlight_string"]highlight_string[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]code[/COLOR][COLOR= #007700]]);[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]</blockquote>[/COLOR][COLOR= #007700];
}[/COLOR]
?>


online http://codepaste.eu/mini/pro.php
rate biggrin
0
Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
heb je demo?
0
Daiman

Lid · Topicstarter

Berichten
5.795
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Nielsie:
heb je demo?

staat er nu bij
0
Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
nice wink
0
Daiman

Lid · Topicstarter

Berichten
5.795
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Nielsie:
nice wink
ty

hij is wel super simpel maar ik ga hem uitbreiden
0
Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
Hij bugt als ik dit erin voer:

<html>
<head>

<style type="text/css">
blockquote {
border-style: solid;
height: 600px;
width: 900px;
overflow: auto;
border: 1px solid #666;
background-color: #ccc;
padding: 8px;}
</style>
<title></title>
</head>
<body>
<form method="post" action="?id=2">
<textarea name="code" type="textarea" rows="10" cols="100" >
[COLOR= #0000BB]<?php[/COLOR]  [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]code[/COLOR][COLOR= #007700]];[/COLOR] ?>
</textarea>

<br>
<input type="submit" value="laat zien"></div>
</form>
</body>
</html>
[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><blockquote>[/COLOR][COLOR= #007700];[/COLOR] [URL="http://www.php.net/highlight_string"]highlight_string[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]code[/COLOR][COLOR= #007700]]);[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]</blockquote>[/COLOR][COLOR= #007700];
}[/COLOR]
?>
0
Daiman

Lid · Topicstarter

Berichten
5.795
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Nicknl:
Hij bugt als ik dit erin voer:

<html>
<head>

<style type="text/css">
blockquote {
border-style: solid;
height: 600px;
width: 900px;
overflow: auto;
border: 1px solid #666;
background-color: #ccc;
padding: 8px;}
</style>
<title></title>
</head>
<body>
<form method="post" action="?id=2">
<textarea name="code" type="textarea" rows="10" cols="100" >
[COLOR= #0000BB]<?php[/COLOR]  [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]code[/COLOR][COLOR= #007700]];[/COLOR] ?>
</textarea>

<br>
<input type="submit" value="laat zien"></div>
</form>
</body>
</html>
[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><blockquote>[/COLOR][COLOR= #007700];[/COLOR] [URL="http://www.php.net/highlight_string"]highlight_string[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]code[/COLOR][COLOR= #007700]]);[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]</blockquote>[/COLOR][COLOR= #007700];
}[/COLOR]
?>


ja idd

ik ga dat ff nakijken
0
Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
ok, verder nice script wink
0
Berichten
6.144
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Ik zou gewoon mest $_POST werken, anders krijg dat gekloot van $_GET.
0
Daiman

Lid · Topicstarter

Berichten
5.795
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Jponsen:
Ik zou gewoon mest $_POST werken, anders krijg dat gekloot van $_GET.

hij werkt ook met post

maar die get is voor id=2 yummie
0
Berichten
6.144
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Ja dat snap ik, maar dan alsnog.. bouw het script zo dat het uiteindelijk alleen maar met post werkt..
0
Daiman

Lid · Topicstarter

Berichten
5.795
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
zo speciaal voor jponsen alles met post

<html>
<head>

<style type="text/css">
blockquote {
border-style: solid;
height: 600px;
width: 900px;
overflow: auto;
border: 1px solid #666;
background-color: #ccc;
padding: 8px;} 
</style>
<title></title>
</head>
<body>
<form method="post" action="[COLOR= #0000BB]<?php $_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]PHP_SELF[/COLOR][COLOR= #007700]];[/COLOR] ?>">
<textarea name="code" type="textarea" rows="10" cols="100" >
[COLOR= #0000BB]<?php[/COLOR]  [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]code[/COLOR][COLOR= #007700]];[/COLOR] ?>
</textarea>

<br>
<input type="submit" value="laat zien"></div>
</form>
</body>
</html>
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700]) {[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]Uw code : <br></br><blockquote>[/COLOR][COLOR= #007700];[/COLOR] [URL="http://www.php.net/highlight_string"]highlight_string[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]code[/COLOR][COLOR= #007700]]);[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]</blockquote>[/COLOR][COLOR= #007700];
}[/COLOR]
?>
0
Berichten
1.168
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Nice, maar wel simpel.wink
0
Berichten
6.144
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Nou ja zeg emoSpeciaal voor mij xd;

Maar, POST is ook veliger dan GET...
0
Krm

Lid

Berichten
6.235
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
nu nog regel nummers
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