Discuss Scratch

EHAN_INC
Scratcher
28 posts

How can I add html code to a scratch project?

Hello,
I need help adding some html scripts into my scratch project (if there is any way to do that)

Also, I am on a Chromebook (ChromeOS) (so a bunch of cool stuff that works on windows, and mac will not work for me)

or is there a way to convert all the code in my project from blocks to html?

(and no I am not asking how to embed my project, I already know how to do that!)
awesome-llama
Scratcher
1000+ posts

How can I add html code to a scratch project?

You cannot embed functional html into a Scratch project.

For the other question, Scratch projects are HTML (HTML5). They already exist as HTML, allowing for embedding projects to other places. Is there something you want to do with it that requires this conversion you are seeking?

Last edited by awesome-llama (June 11, 2020 14:31:48)

EHAN_INC
Scratcher
28 posts

How can I add html code to a scratch project?

I need to add an SDK HTML file into my scratch project, but obviously there is no block to do that (why would there) so I need to turn all the blocks in my scratch project into editable HTML, so I can add in HTML that are not blocks given by scratch, I know scratch uses HTML, but I need some way to edit the HTML, and add HTML that isn't in the form of blocks, thanks for your help though
awesome-llama
Scratcher
1000+ posts

How can I add html code to a scratch project?

I don't have any experience with SDKs, so my help is going to run out soon. The Advanced Topics subforum might be the better place to ask for programming questions like this.

Now, I did try and have a look for a converter. I think this might be what you need: https://sheeptester.github.io/htmlifier/

Also, don't you mean JavaScript rather than just HTML? That's the language that is also needed to run Scratch.
EHAN_INC
Scratcher
28 posts

How can I add html code to a scratch project?

The SDK needs to run in html, thanks for the converter, I think it will work
Thank You For Your Help
EHAN_INC
Scratcher
28 posts

How can I add html code to a scratch project?

Also, Javascript can run inside HTML, but HTML cannot run inside Javascript, Thanks For Your Help, it worked
EHAN_INC
Scratcher
28 posts

How can I add html code to a scratch project?

Thank you for finding the “HTMLifer” I no longer need help

Powered by DjangoBB