W3Schools Try-it Editor

Does anyone know how to get it or where to get it, or how to make it, or where to find a tutorial about w3schools, try its editor ?

I need such an editor, so when I type js / html / css, the code will be accepted and shown as a tryit editor.

+5
source share
3 answers

The "editor" you are talking about is nothing more than:

<form action="<?= $_SERVER["PHP_SELF"] ?>" method="POST">
<input type="submit">

<textarea name="code"><?= htmlentities($_POST["code"]) ?></textarea>

<div id="output">
  <?= $_POST["code"] ?>
</div>

And submitting a PHP form can even be replaced with:

<button onclick='$("#output").html( $("textarea#code").value )'>
+6
source

If I understand correctly, are you looking for a Javascript or PHP editor?

For JS, I use jsfiddle.net , and for PHP, I use codepad.org .

+7

, , , W3Schools Tryit Editor.

http://jsfiddle.net/, . HTML, JS CSS . / . - , .

+4

All Articles