Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Don't Trim [CODE] Content

I think that there shouldn't be trimming in content between the code tags.

This is a problem when writing code with indentation:

For example:
Code
while (true) {
    if (something) {
  doSomething();
  if (!something) {
    doSomethingElse();
  }
    }
}

Also with numbers in code, for example 55/55/55 (ignore the /'s, they are there to stop it from formatting) turns into 55
Not a bad idea, same thing should also be done for images or this limitation should be removed completely.

I understand it is for stopping lqps, but we can always report them.
I agree with this suggestion fully.

But unsure on how it'd be implemented.
(Oct 13, 2012 11:54 PM)Jire Wrote:  I think that there shouldn't be trimming in content between the code tags.

This is a problem when writing code with indentation:

For example:
Code
while (true) {
    if (something) {
  doSomething();
  if (!something) {
    doSomethingElse();
  }
    }
}

Also with numbers in code, for example 55/55/55 (ignore the /'s, they are there to stop it from formatting) turns into 55

Do you mean that all tabs and spaces are gone? If so I agree totally, its very anoying if you post code and the whole format is gone.
I agree with this. Posting neat code is a nightmare of invisible characters and copy paste tabs.
Crypto

Totally support this idea. it gets annoying sometimes if you have repeating characters and it formats it. I hate it.
I am pro this idea it would help out alot :D
MAKE REP GREAT AGAIN 2027
Thanks for your support guys, I hope to see this implemented in the forum :-P
Well... I'm against this.
What about when people date things? I constantly date activity checks/reviews for Rhythm, threads when I post my articles for the news in Writers, etc.
(Oct 15, 2012 04:22 AM)Phytrix Wrote:  Well... I'm against this.
What about when people date things? I constantly date activity checks/reviews for Rhythm, threads when I post my articles for the news in Writers, etc.

What does that have to do with the white-space/repeat-character trimming?
If anything, this would solve a lot of problems that users are having.

/support
Have my support. I have to paste my code into my Pastebin instead so it's formatted correctly.
(Oct 15, 2012 04:22 AM)Phytrix Wrote:  Well... I'm against this.
What about when people date things? I constantly date activity checks/reviews for Rhythm, threads when I post my articles for the news in Writers, etc.

That has nothing with formatting the things in the code tags. The code tag is for codes and nothing else.

I agree with this and whitespace is important to some languages, especially Python.
In theory it sounds nice but practically I think it can be a source for abuse.
(Oct 15, 2012 02:48 PM)Omniscient Wrote:  In theory it sounds nice but practically I think it can be a source for abuse.

Another thing to do it then. Make code tags not count towards the character counting in posts. That way there isn't too much it can be abused with ^_^
(Oct 15, 2012 02:48 PM)Omniscient Wrote:  In theory it sounds nice but practically I think it can be a source for abuse.
What are some abuses people could do?


Possibly Related Threads...
Thread / Author Replies Views Last Post
by HackersSep 24, 2025 01:19 PM 25 712 Sep 24, 2025 01:19 PM
Last Post: Hackers
by 3Cool5SchoolAug 15, 2012 12:39 AM 5 136 Aug 15, 2012 12:39 AM
Last Post: Mr Kewl