+ 3

how would i make a real time html editor?

What i mean by Real Time editior is that you would type in html/css code and it would run it and give an output. Im trying to make this for my website thats on html but i dont understand how to code it.

9th May 2017, 10:05 PM
mar
5 Réponses
+ 8
look at github
9th May 2017, 11:11 PM
NimWing Yuan
NimWing Yuan - avatar
+ 3
You can use a library ( search on google ) to handle an adanced code editor ( with syntaxic coloration, and so on )... And on the other side, you have to send ( JS document.write() ) your source code to a new document for displaying it ( it could be on the same window/tab, on a new one, inside an <iframe> element... ).
10th May 2017, 3:42 AM
visph
visph - avatar
+ 1
w3schools & codepen.io ...not the answer you're looking for but they're cool & do what you're asking...so it can be done.
10th May 2017, 1:16 AM
Damien Lucchese
Damien Lucchese - avatar
+ 1
Try code playground..the best mobile code editor.
10th May 2017, 2:51 AM
Calviղ
Calviղ - avatar
0
write your code then save it as (.html or .htm)
10th May 2017, 1:39 AM
Kirollos Ayman