Discuss Scratch

Chiroyce
Scratcher
1000+ posts

Finding differences between the forum preview and the post result.

CST1229 wrote:

You can also escape symbols this way:
Yep obviously because a backslash is mainly used for escaping
airplanedodge
Scratcher
1000+ posts

Finding differences between the forum preview and the post result.

Chiroyce wrote:

CST1229 wrote:

You can also escape symbols this way:
Yep obviously because a backslash is mainly used for escaping
yep, \n is linebreak.
gosoccerboy5
Scratcher
1000+ posts

Finding differences between the forum preview and the post result.

say [\[\[hello world\]\]]
backslash ftw
CST1229
Scratcher
1000+ posts

Finding differences between the forum preview and the post result.

airplanedodge wrote:

yep, \n is linebreak.
wait you can do that? lemme test
line \n break :: events
no you can't
airplanedodge
Scratcher
1000+ posts

Finding differences between the forum preview and the post result.

CST1229 wrote:

airplanedodge wrote:

yep, \n is linebreak.
wait you can do that? lemme test
line \n break :: events
no you can't
in javascript bruh
should have been clearer

Last edited by airplanedodge (July 4, 2021 17:01:39)

gdpr5b78aa4361827f5c2a08d700
Scratcher
1000+ posts

Finding differences between the forum preview and the post result.

airplanedodge wrote:

in javascript bruh
its a standard escape sequence, so its in pretty much every good programming language that supports strings.
CST1229
Scratcher
1000+ posts

Finding differences between the forum preview and the post result.

potatophant wrote:

airplanedodge wrote:

in javascript bruh
its a standard escape sequence, so its in pretty much every good programming language that supports strings.
except scratchblocks.
Maximouse
Scratcher
1000+ posts

Finding differences between the forum preview and the post result.

CST1229 wrote:

potatophant wrote:

airplanedodge wrote:

in javascript bruh
its a standard escape sequence, so its in pretty much every good programming language that supports strings.
except scratchblocks.
scratchblocks isn't a programming language.
Raihan142857
Scratcher
1000+ posts

Finding differences between the forum preview and the post result.

Maximouse wrote:

CST1229 wrote:

potatophant wrote:

airplanedodge wrote:

in javascript bruh
its a standard escape sequence, so its in pretty much every good programming language that supports strings.
except scratchblocks.
scratchblocks isn't a programming language.
Maybe \\n works
\\n
sad
Chiroyce
Scratcher
1000+ posts

Finding differences between the forum preview and the post result.

Raihan142857 wrote:

sad
maybe this works
say [hello \n world]

hey the \ got deleted!
mybearworld
Scratcher
1000+ posts

Finding differences between the forum preview and the post result.

https://scratch.mit.edu/discuss/topic/614676/

Preview:
"https://cdn.scratch.mit.edu/scratchr2/static/__9209616f20ac7fc52efa806cd216a370__//djangobb_forum/js/markitup/"
Post:
"~/"
kccuber
Scratcher
1000+ posts

Finding differences between the forum preview and the post result.

move () \
steps
Something weird, probably not a difference in the non-post preview though
EDIT: nope no differnce lol please disregard this post

Last edited by kccuber (June 28, 2022 16:26:55)

ZZC12345
Scratcher
500+ posts

Finding differences between the forum preview and the post result.

Chiroyce wrote:

Raihan142857 wrote:

sad
maybe this works
say [hello \n world]

hey the \ got deleted!
The \ is escaping the n. Escape characters aren't shown, because they're used for escaping. For example, “\(” escapes the (, rendering as “(” instead of the start of a reporter with a backslash before it.
In JavaScript/Python/probably more languages, “a” isn't a special escape character, so the same thing works:
>>> "\a"
'a'
…and you lose the backslash
nembence
Scratcher
500+ posts

Finding differences between the forum preview and the post result.

In the preview there is a yellow cap block with a text input with “/scratchblocks” in it
say [scratchblocks]
[/scratchblocks]
nembence
Scratcher
500+ posts

Finding differences between the forum preview and the post result.

(<::ring><::ring>)//this is green in the preview

Powered by DjangoBB