Discuss Scratch
- TheColaber
-
500+ posts
Comment Blocks
As you may know…

… Currently in scratch, you can only comment text. I think it would be great to also be able to comment blocks, like in other programming languages… I guess in order to comment blocks, you could drag and drop them into a comment… So, you can type things into a comment and also add blocks in there too.
Here is a little example: (by @Basic88)

What do you think… Support, or No Support and why? (support recommended)
… Currently in scratch, you can only comment text. I think it would be great to also be able to comment blocks, like in other programming languages… I guess in order to comment blocks, you could drag and drop them into a comment… So, you can type things into a comment and also add blocks in there too.
Here is a little example: (by @Basic88)

What do you think… Support, or No Support and why? (support recommended)
Last edited by TheColaber (Aug. 4, 2020 14:16:08)
- xXRedTheCoderXx
-
1000+ posts
Comment Blocks
Well, why should you be able to put block in comments? Sorry, but I can't see how this can help people with their project creation, at least for me. 

- TheColaber
-
500+ posts
Comment Blocks
Well, If you wanted to show a user some code and explain or something like that… You could put type stuff in a comment and also put code inside… Kinda the same reason we have scratch blocks and text in the forum. Well, why should you be able to put block in comments? Sorry, but I can't see how this can help people with their project creation, at least for me.
- BestUsernameSoFar
-
100+ posts
Comment Blocks
support recommended)Support Recommended?? Haha, that's the best thing I have ever seen! (

- TheColaber
-
500+ posts
Comment Blocks
Well actually, I've done it here to: https://scratch-mit-edu.ezproxyberklee.flo.org/discuss/topic/420467/support recommended)Support Recommended?? Haha, that's the best thing I have ever seen! (I am laughing so hard right now.
- xXRedTheCoderXx
-
1000+ posts
Comment Blocks
Can't you just put code (That isn't connected to a hat block) and comment that?Well, If you wanted to show a user some code and explain or something like that… You could put type stuff in a comment and also put code inside… Kinda the same reason we have scratch blocks and text in the forum. Well, why should you be able to put block in comments? Sorry, but I can't see how this can help people with their project creation, at least for me.
- HTML-Fan
-
1000+ posts
Comment Blocks
Do you mean
define comment (text)? (I wish I could use //, but that's reserved)
when green flag clicked
comment [Haha lol]
- scratchastroLOL
-
1000+ posts
Comment Blocks
I've seen people use this as a comment.
So yeah. There is a workaround. But I rather use the comments that we already have.
move (10) steps //This is a normal comment
/ / [This is a comment block] :: custom
define // (comment)
So yeah. There is a workaround. But I rather use the comments that we already have.
Last edited by scratchastroLOL (July 21, 2020 17:02:41)
- HTML-Fan
-
1000+ posts
Comment Blocks
Yeah, I also had that // problem. And ninja'd you. I've seen people use this as a comment.move (10) steps //This is a normal comment
/ / [This is a comment block] :: custom
define // (comment)
- Botcho_Otkho
-
1000+ posts
Comment Blocks
No, don't write that. It just leads to unconstructive posts. Support, or No Support and why?
Do you meandefine comment (text)? (I wish I could use //, but that's reserved)
when green flag clicked
comment [Haha lol]
I think the OP is suggesting to put blocks in comment. I've seen people use this as a comment.move (10) steps //This is a normal comment
/ / [This is a comment block] :: custom
define // (comment)
So yeah. There is a workaround. But I rather use the comments that we already have.
Last edited by Botcho_Otkho (July 21, 2020 17:04:17)
- scratchastroLOL
-
1000+ posts
Comment Blocks
if that's the case, then you could maybe use this?
nevermind. this is the worst workaround I've ever made
change x by (10)
if <[1] = [2]> then //This is the same as
move (10) steps
end
nevermind. this is the worst workaround I've ever made
Last edited by scratchastroLOL (July 21, 2020 17:20:19)
- HTML-Fan
-
1000+ posts
Comment Blocks
Ah, now I understand!
when green flag clickedcan be converted to
forever
loop :: custom
draw:: custom
end
when green flag clicked
forever
loop :: custom
/ / draw::#000000
end
Last edited by HTML-Fan (July 21, 2020 17:10:57)
- xXRedTheCoderXx
-
1000+ posts
Comment Blocks
Guys, the OP is not asking for a block comment, they are asking to be able to put blocks in comments. 
I still don't see how that would be useful, though…

I still don't see how that would be useful, though…
- HTML-Fan
-
1000+ posts
Comment Blocks
The thing is: I do it a lot in C++. About 20% of my code are just code lines with // in the beginning, because I maybe don't use them currently, like I still don't see how that would be useful, though…
while(true){
//print(a);
print(b);
}
- Vercte
-
500+ posts
Comment Blocks
Support. I'm thinking of adding a remix guide for all my projects, and blocks in comments would really help.
It's a guide explaining all the broadcasts, variables, lists, and custom blocks, so this would IMMENSELY help.
It's a guide explaining all the broadcasts, variables, lists, and custom blocks, so this would IMMENSELY help.
- Basic88
-
1000+ posts
Comment Blocks
Comment Blocks? I don't understand this much :P
Like text based syntax?
function (what?)
–comment mwahaha
end
I see. Could you create a mockup so we can understand better? I don't know if I support
Like text based syntax?
function (what?)
–comment mwahaha
end
I see. Could you create a mockup so we can understand better? I don't know if I support

Last edited by Basic88 (July 21, 2020 17:26:36)
- xXRedTheCoderXx
-
1000+ posts
Comment Blocks
Yeah, that makes sense, but that's text based coding. Not block coding.The thing is: I do it a lot in C++. About 20% of my code are just code lines with // in the beginning, because I maybe don't use them currently, like I still don't see how that would be useful, though…
while(true){
//print(a);
print(b);
}
If you want to do that in Scratch, you just unsnap the block and leave it on the side of the script or something. No need to put it in a comment.
- HTML-Fan
-
1000+ posts
Comment Blocks
Yeah, that was also my idea, since you can't just pull stuff out of a block of blocks, you need // in text-based stuff, but not in Scratch.
- scratchastroLOL
-
1000+ posts
Comment Blocks
I see. Could you create a mockup so we can understand better? I don't know if I support
Here:
