开发者

W3Schools Try-it Editor [closed]

开发者 https://www.devze.com 2023-02-25 07:27 出处:网络
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.

We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.

Closed 4 yea开发者_StackOverflow中文版rs ago.

Improve this question

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

I need an editor like it, so when typing js/html/css the code be accepted and shown like the tryit editor.


If I understand that correctly, you're looking for a Javascript or PHP editor?

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


The "editor" you are referring to is nothing more but:

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

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

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

And the PHP form sending could even be replaced by:

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


Your question wasn't super clear, but it sounds like you're asking for another tool similar to the W3Schools Tryit Editor.

I use http://jsfiddle.net/, and I love it. It lets you quickly add HTML, JS, and CSS to the editor and get the results. It also lets you save/share your code with others. It's great for mocking up something quick and sending it out to get approved or to get help with syntax.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号