How to Build Your Own Live Code Editor using HTML, CSS & JavaScript

preview_player
Показать описание
In this video, I will show you how you can easily create your own real time live html code editor using HTML, CSS & JavaScript.

Рекомендации по теме
Комментарии
Автор

This one is Amazing. I created my own live code editor!!! Thank you.

bhagabatiprasad
Автор

How can I add like auto finishing the tag when you write <h1> it automaticly generates

zchceef
Автор

Thanks! Now me and my friends have an easier way to learn on how to make websites!

devioun
Автор

Super Thanks, I needed this for my website

wombofun
Автор

Incredible logic. ❤ can u make a video on IDE

ajaytiwari
Автор

I noticed your thumbnail had a console.log statement in the JS but your editor doesnt have a console

PabloHernandez-tfdo
Автор

Hi, a question if i want to use css and js in a different page, how i have to added? Thank you for this video was great, i hope ypu can answer my question

steffanynaranjo
Автор

this is very helpful for me.
Really Big Thanks to you.
I have used this code in my Project and its working fine, but i also need one favour from you.
In my project on webpage i have displayed HTML code in Syntax Highlighter and there in button "Try It Your Self". When user click on that button, that particular code should be paste in html live editor page.
Like in W3school.
I hope are you understand what i am trying to say.
Please help me out to solve this problem.

pruthachauhan
Автор

It's really awesome but it doesn't work with const and let. It can only use var why?

adrielamadi
Автор

Can i use this project for resume, placement project?

developmywebsiteo
Автор

Question
Why you wrote "<scri"+"pt>" instead of "<script >"

glitchlover
Автор

I'm referring to your video for my graduation project, and I think it will help me a lot. But can you please tell me the IDE tool that you used to run the code in?

rehamalbulushi
Автор

Hello friend, I do not understand why on the right side of the page where is shown the result of the code like the example of the title you put, it appears undefined

fedepeirano
Автор

how to make a html structure and apply it to your website like in w3shools theres snippet codes there how to make that like for display code

MarkTzyML
Автор

I am having trouble with the code. Somehow the code I type in the boxes does not show up in the box. Can you please show me where I made a mistake. Thanks
(the code is below)









<!DOCTYPE html>
<html>
<head>
<title>Web Code Editor</title>
<style type=”text/css”>
* {
margin: 0px;
padding: 0px;
box-sizing: border-box;
}
body {
height: 100vh;
display: flex;
}
.code-area {
display: flex;
flex-direction: column;
width: 50%;
border-right: 1px solid #555;
}
.code-area textarea {
resize: none;
outline: none;
width: 100%;
height: 33.33%;
font-size: 18px;
padding: 10px;
}
.preview-area {
width: 50%;
}
.preview-area iframe {
width: 100%;
height: 100%;
border: none;
}

</style>
</head>
<body>
<div class=”code-area”>
<textarea id=”htmlCode” placeholder="HTML Code"
<textarea id=”cssCode” placeholder="CSS Code"
<textarea id=”jsCode” placeholder="JavaScript Code"

</div>
<div class=”preview-area”>
<iframe id=”preview-window”><iframe>
</div>
<script type=”text/javascript”>
function showPreview(){
var htmlCode =
var cssCode = "";
var jsCode =
var frame =
frame.open();

frame.close();
}
</script>
</body>
</html>

hammer
Автор

<textarea id="text"></textarea> <!-- textarea, you can use inputs or divs which are better in this case -->

<iframe></iframe> <!-- adding iframe -->


<script>

var text =
var iframe =

text.addEventListener("keyup", () => {
iframe.src = `data:text/html, ${text.value}`; // <-- adding listener textarea whenever it changes it will execute this code
});

</script>

notflawffles
Автор

if we use div instead of textarea what will be change in js code

GauravSingh-cswo
Автор

which software you used in the video to write the html code?

bhuvanvenkatganesh.b
Автор

I tried to add a title at the top but it is appearing on the left side of my page. how can I add it to the top??

ankushsangwan
Автор

how can i add code under <div class="html-code"></div> jo browser pr run ho jay hmare editor k andar plz tell ASAP

saifisqueen