Discuss Scratch
- Discussion Forums
- » Suggestions
- » A Way to See Scratch's Code
- aking_
-
Scratcher
1000+ posts
A Way to See Scratch's Code
Actually, you can.
Because everybody knows how to use inspect element

But I didn't know you could use inspect element in the Scratch editor; interesting.
- _nix
-
Scratcher
1000+ posts
A Way to See Scratch's Code
That doesn't actually reveal much, though. If you use inspect element a little more you'll find that the Scratch editor is all one HTML element, which itself is a Flash embed (note the <object> element, whose “data” is a URL to an SWF file).Actually, you can.Because everybody knows how to use inspect element
But I didn't know you could use inspect element in the Scratch editor; interesting.
- adriel001
-
Scratcher
100+ posts
A Way to See Scratch's Code
Suggestion: a button (for advanced users, of course) to see how Scratch blocks are coded. Basically, you click a button, then it opens up something showing the coding for your project. This would be helpful for people who are experienced coders and want to know how the blocks work.Support
Also, maybe even make this text copy-able (only if they made the project) so they could upload it to other sites like Khan Academy, or other coding sites (I don't know any others besides Khan Academy)
Of course, I probably wouldn't use this as the coding would stress me as I don't understand it, but I know some experienced coders (such as Griffpatch) might want to
This actually would be good cause scratch is a learning tool but this would help you learn text code
- mr-scratch-cat
-
Scratcher
500+ posts
A Way to See Scratch's Code
I don't see a real use for it, even though it would be really interesting to see how the code gets coded. Support 63%.
- Xx_DeathPetal_xX
-
Scratcher
100+ posts
A Way to See Scratch's Code
Suggestion: a button (for advanced users, of course) to see how Scratch blocks are coded. Basically, you click a button, then it opens up something showing the coding for your project. This would be helpful for people who are experienced coders and want to know how the blocks work.• Reply •
Also, maybe even make this text copy-able (only if they made the project) so they could upload it to other sites like Khan Academy, or other coding sites (I don't know any others besides Khan Academy)
Of course, I probably wouldn't use this as the coding would stress me as I don't understand it, but I know some experienced coders (such as Griffpatch) might want to
They have a book that kind of describes like the say block to python code, etc. It's not made by them, but it's based on Scratch and Python! I agree that this would be a great idea. I've always wanted to see the HTML code of the “Create” site.
- Xx_DeathPetal_xX
-
Scratcher
100+ posts
A Way to See Scratch's Code
I don't see a real use for it, even though it would be really interesting to see how the code gets coded. Support 63%.• Reply •
Look at the comment ABOVE yours!
It should explain that perfectly. Read the comments before posting to avoid this, or explain why you disagree with the reason there. - miniepicness
-
Scratcher
1000+ posts
A Way to See Scratch's Code
You can already see it in the offline
- KawaiiCatGirl-
-
Scratcher
1000+ posts
A Way to See Scratch's Code
Of course, not everyone can buy third party books, as they don't have the money but they do have the money for a computer, but they could use a library or friend's computerSuggestion: a button (for advanced users, of course) to see how Scratch blocks are coded. Basically, you click a button, then it opens up something showing the coding for your project. This would be helpful for people who are experienced coders and want to know how the blocks work.• Reply •
Also, maybe even make this text copy-able (only if they made the project) so they could upload it to other sites like Khan Academy, or other coding sites (I don't know any others besides Khan Academy)
Of course, I probably wouldn't use this as the coding would stress me as I don't understand it, but I know some experienced coders (such as Griffpatch) might want to
They have a book that kind of describes like the say block to python code, etc. It's not made by them, but it's based on Scratch and Python! I agree that this would be a great idea. I've always wanted to see the HTML code of the “Create” site.
- ScriptedAwesome
-
Scratcher
1000+ posts
A Way to See Scratch's Code
Sorry, but no. This would make legal issues.
- JGames101
-
Scratcher
100+ posts
A Way to See Scratch's Code
Suggestion: a button (for advanced users, of course) to see how Scratch blocks are coded. Basically, you click a button, then it opens up something showing the coding for your project. This would be helpful for people who are experienced coders and want to know how the blocks work.You can already see the code of any website by opening developer settings (Chrome is F12), so you can already do that. Especially with Scratch3 when the code is in JavaScript. You could see the JS for the blocks, so no support.
Also, maybe even make this text copy-able (only if they made the project) so they could upload it to other sites like Khan Academy, or other coding sites (I don't know any others besides Khan Academy)
Of course, I probably wouldn't use this as the coding would stress me as I don't understand it, but I know some experienced coders (such as Griffpatch) might want to
- JGames101
-
Scratcher
100+ posts
A Way to See Scratch's Code
You can already see the HTML code of any page by opening the developer settings on your browser, or right clicking and selecting “view source” (at least on Chrome). Especially when they release Scratch3 and everything is HTML5, but you can already see the Flash files and everything from your browser, so advanced users already have a way to do this. Like I said before, no support.Suggestion: a button (for advanced users, of course) to see how Scratch blocks are coded. Basically, you click a button, then it opens up something showing the coding for your project. This would be helpful for people who are experienced coders and want to know how the blocks work.• Reply •
Also, maybe even make this text copy-able (only if they made the project) so they could upload it to other sites like Khan Academy, or other coding sites (I don't know any others besides Khan Academy)
Of course, I probably wouldn't use this as the coding would stress me as I don't understand it, but I know some experienced coders (such as Griffpatch) might want to
They have a book that kind of describes like the say block to python code, etc. It's not made by them, but it's based on Scratch and Python! I agree that this would be a great idea. I've always wanted to see the HTML code of the “Create” site.
- KawaiiCatGirl-
-
Scratcher
1000+ posts
A Way to See Scratch's Code
Sorry, but no. This would make legal issues.how?
- mr-scratch-cat
-
Scratcher
500+ posts
A Way to See Scratch's Code
WhoopsI don't see a real use for it, even though it would be really interesting to see how the code gets coded. Support 63%.• Reply •
Look at the comment ABOVE yours!It should explain that perfectly. Read the comments before posting to avoid this, or explain why you disagree with the reason there.
I actually did read it but I almost never fully read posts lol- MentolMen
-
Scratcher
1000+ posts
A Way to See Scratch's Code
Hmm
https://wiki.scratch.mit.edu/wiki/JSON
and
http://projects.scratch.mit.edu/internalapi/project/PROJECTID/get/
If you do not want to download the .zip project
https://wiki.scratch.mit.edu/wiki/JSON
and
http://projects.scratch.mit.edu/internalapi/project/PROJECTID/get/
If you do not want to download the .zip project- mcnedj468
-
Scratcher
30 posts
A Way to See Scratch's Code
i have an idea
make a button that lets you see the script for your projects but not in block form in script form and you can choose the programming language
make a button that lets you see the script for your projects but not in block form in script form and you can choose the programming language
- Za-Chary
-
Scratcher
1000+ posts
A Way to See Scratch's Code
It turns out that this is rejected. Sorry — but keep thinking of ways to improve Scratch!
2.2 Text-based syntax in Scratch
Some users wish to code Scratch not with the blocks, but with typing code instead (similar to how more advanced programming languages work). Others are interested in an option to view, convert, or download Scratch code to other programming languages. However, the Scratch Team has discussed this possibility multiple times and has decided every time that it would not be beneficial for beginners or for teachers.
This suggestion extends to coding, viewing, converting, or downloading Scratch in any text-based language, including BBCode, Javascript, some form of pseudocode, or some other programming language. If you wish to code using another language, then you can learn it on your own, but it would have to be done outside of Scratch.
- Discussion Forums
- » Suggestions
-
» A Way to See Scratch's Code











