Discuss Scratch
- gravtest
-
Scratcher
100+ posts
Slight tweak to comments
Sometimes, I want to write some code or something that makes newlines significant in a comment on a project, studio or profile page. I was thinking, maybe newlines could actually be rendered as line breaks; this would make the actual page's code look cleaner and the comment could display them properly.
Implementation-wise, in PHP it might look like this:
Python's code would be a lot more efficient:
However, this could allow for spam:
A limit could be added:
Well, it's just a suggestion, so yeah
Implementation-wise, in PHP it might look like this:
$commentbody = implode("<br />", explode("\n", $commentbody));
Python's code would be a lot more efficient:
commentbody = commentbody.replace("\n", "<br />")
However, this could allow for spam:
this is……………………
huge amount of newlines
………….awesome!
A limit could be added:
$commentbody = implode("<br />", explode("\n", $commentbody, 15));
commentbody = commentbody.replace("\n", "<br />", 15)
Well, it's just a suggestion, so yeah

- gravtest
-
Scratcher
100+ posts
Slight tweak to comments
Wait, so why would this be helpful?There have been a lot of miscellaneous situations that not having newlines made my comments a lot less clear or totally unreadable which I can't entirely recall.
I think the real question here is, why wouldn't this be helpful?- AonymousProfessor
-
Scratcher
100+ posts
Slight tweak to comments
Okay, I agree. I like being organized when I try to give people advice and whatnot.Wait, so why would this be helpful?There have been a lot of miscellaneous situations that not having newlines made my comments a lot less clear or totally unreadable which I can't entirely recall.I think the real question here is, why wouldn't this be helpful?
- Candylanguagegirl
-
Scratcher
1000+ posts
Slight tweak to comments
(We are talking about using the enter key in comments on projects, profiles and studios, not the kind of comments that are inside projects.)
This has been bugging me for a while. I know it probably isn't a feature because it would be easy to spam, but it drives me a bit crazy.
So you're writing a really long comment, or a comment that should be in two short paragraphs rather than one long one, or you're linking to a project/forum post in a comment but have something to say after you link it. You press the enter key, and voila, a new line appears. Huzzah! You go and space your comment so it looks nice and is easy to read, and press submit. The comment loads, and you look proudly upon the beautiful thing you put so much time into. But wait- what just happened!? Crestfallen, you see that your happy little comment has been reduced to a long pile of words. Ugh.
Ok, so creative writing set aside, there HAS to be a way to introduce the enter key while keeping spam out of the picture. For instance, you'd have to have at least 10 words every time you hit enter? (Hey, that could actually work.)
Another option (as per Sheep_maker) is to have a “read more” option appear if too many enters are used.
Anyway, that's my argument. I'm just gonna leave this here and hope I'm not the only one.
This has been bugging me for a while. I know it probably isn't a feature because it would be easy to spam, but it drives me a bit crazy.
So you're writing a really long comment, or a comment that should be in two short paragraphs rather than one long one, or you're linking to a project/forum post in a comment but have something to say after you link it. You press the enter key, and voila, a new line appears. Huzzah! You go and space your comment so it looks nice and is easy to read, and press submit. The comment loads, and you look proudly upon the beautiful thing you put so much time into. But wait- what just happened!? Crestfallen, you see that your happy little comment has been reduced to a long pile of words. Ugh.
Ok, so creative writing set aside, there HAS to be a way to introduce the enter key while keeping spam out of the picture. For instance, you'd have to have at least 10 words every time you hit enter? (Hey, that could actually work.)
Another option (as per Sheep_maker) is to have a “read more” option appear if too many enters are used.
Anyway, that's my argument. I'm just gonna leave this here and hope I'm not the only one.

Last edited by Candylanguagegirl (Oct. 3, 2016 10:59:27)
- The4thPixel
-
Scratcher
1000+ posts
Slight tweak to comments
100% support, for reasons listed in the Original Post.
(We are talking about using the enter key in comments on projects, profiles and studios, not the kind of comments that are inside projects.)
This has been bugging me for a while. I know it probably isn't a feature because it would be easy to spam, but it drives me a bit crazy.
So you're writing a really long comment, or a comment that should be in two short paragraphs rather than one long one, or you're linking to a project/forum post in a comment but have something to say after you link it. You press the enter key, and voila, a new line appears. Huzzah! You go and space your comment so it looks nice and is easy to read, and press submit. The comment loads, and you look proudly upon the beautiful thing you put so much time into. But wait- what just happened!? Crestfallen, you see that your happy little comment has been reduced to a long pile of words. Ugh.
Ok, so creative writing set aside, there HAS to be a way to introduce the enter key while keeping spam out of the picture. For instance, you'd have to have at least 10 words every time you hit enter? (Hey, that could actually work.)
Anyway, that's my argument. I'm just gonna leave this here and hope I'm not the only one.
Candylanguagegirl didn't wrote:I'm obsessed with grammar, and I like the first post rather than the second post listed above. Support.
(We are talking about using the enter key in comments on projects, profiles and studios, not the kind of comments that are inside projects.)
This has been bugging me for a while. I know it probably isn't a feature because it would be easy to spam, but it drives me a bit crazy. So you're writing a really long comment, or a comment that should be in two short paragraphs rather than one long one, or you're linking to a project/forum post in a comment but have something to say after you link it. You press the enter key, and voila, a new line appears. Huzzah! You go and space your comment so it looks nice and is easy to read, and press submit. The comment loads, and you look proudly upon the beautiful thing you put so much time into. But wait- what just happened!? Crestfallen, you see that your happy little comment has been reduced to a long pile of words. Ugh. Ok, so creative writing set aside, there HAS to be a way to introduce the enter key while keeping spam out of the picture. For instance, you'd have to have at least 10 words every time you hit enter? (Hey, that could actually work.) Anyway, that's my argument. I'm just gonna leave this here and hope I'm not the only one.
- The4thPixel
-
Scratcher
1000+ posts
Slight tweak to comments
Imma bump this.I don't think you needed to, considering you bumped it only about 10 hours after the Original Post was made.
- Candylanguagegirl
-
Scratcher
1000+ posts
Slight tweak to comments
True and understood. But the min is around 12 hours and I really didn't feel like mathing.Imma bump this.I don't think you needed to, considering you bumped it only about 10 hours after the Original Post was made.

- Scratcher1002
-
Scratcher
1000+ posts
Slight tweak to comments
100% support, for reasons listed in the Original Post.Didn't wrote?-snip-Candylanguagegirl didn't wrote:I'm obsessed with grammar, and I like the first post rather than the second post listed above. Support.
-snip-
Support, I've found myself trying to get a new line in comments but then I remember that it doesn't work.
- The4thPixel
-
Scratcher
1000+ posts
Slight tweak to comments
-snippity snip snip-That was a joke, don't worry
Didn't wrote?

- Bright-Idea
-
Scratcher
1000+ posts
Slight tweak to comments
Support, this helps when I'm posting a form in the comment, so instead of becoming.
User: Type: Words:it can be organized, like
User:
Type:
Words:
- scratchnapped
-
Scratcher
1000+ posts
Slight tweak to comments
gahh, 100% support from me. it bugs me that i can't separate my sentences/paragraphs haha
- BurnedCrystal
-
Scratcher
100+ posts
Slight tweak to comments
100% support for reasons I'm not going to bother copy-pasting from everyone else's posts
- Sheep_maker
-
Scratcher
1000+ posts
Slight tweak to comments
To avoid users spamming with empty newlines a “read more” button that automatically appears for longer comments would be a good idea
- The4thPixel
-
Scratcher
1000+ posts
Slight tweak to comments
To avoid users spamming with empty newlines a “read more” button that automatically appears for longer comments would be a good ideaThat sounds good, for example if someone literally wrote a 15-page essay on penguins in one comment.

- P-Code
-
Scratcher
500+ posts
Slight tweak to comments
To avoid users spamming with empty newlines a “read more” button that automatically appears for longer comments would be a good ideaThat sounds good, for example if someone literally wrote a 15-page essay on penguins in one comment.
Technically you can't, because of the character limit

Support!
- The4thPixel
-
Scratcher
1000+ posts
Slight tweak to comments
Yeah, I just remembered that. But the point still stands.To avoid users spamming with empty newlines a “read more” button that automatically appears for longer comments would be a good ideaThat sounds good, for example if someone literally wrote a 15-page essay on penguins in one comment.
Technically you can't, because of the character limit.









