![]() ![]() Sure, Javascript will be a bit limited because you're running in a local file, not a proper website, but it's not that painful. I know this is not a compiler however, it's a way to create an EXE that is self-contained and gives the user a web-liek experience in an application-like window. If you can live with a dependency such as Chrome, you can do a nasty but working solution: RAR can create a self-extracting EXE for you and run a command after extraction (!!), so you can pack up a little micro-universe of HTML/CSS/JS files then you can call Chrome with "-app=something.html" that will give you a plain window with a browser environment and your HTML file in it. Flipside: apart from the syntax being familiar, not a lot will remind you of Javascript, you have to learn a lot of new practices to get along. NET so you can do pretty much anything you want. NET already built into Windows itself) and they have full power of. JSC gives you extremely small executables (because of the. If you want (something-like-)javascript to be compiled to a standalone EXE, give a chance to JSC, it's there in your Windows, you just probably never met before. So for "HTML, CSS and Javascript", the answer is clearly something like this. If you need something to present you a window environment and a webserver emulation, choose ZZEE or ExeOutput, these are decent tools, maybe ZZEE is a bit outdated regarding the PHP version. ![]() But I'm surely biased so let's see all the others. We should align the elements to the center, make the textarea elements go side by side, and put the iframe right below them.UPDATE - I just finished a freeware solution for this check out Scriptonit, I think it's closest to what you need. ![]() Code Editor Making it look decentīefore we head on to making our app, let's style it up a bit. Make sure to set ids for each tag so we can communicate with these elements in JavaScript. To actually show the compiled code, we will also need an iframe which will allow us to insert an html document into an existing html page. To get started with our markup, we'll be needing three textarea tags which will correspond with the id of the language we'll be compiling. Let's get started by creating our usual three files: ![]() In this project, we'll be building a live code editor similar to Codepen or JsFiddle. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |