Raised This Month: $49 Target: $400
 12% 

Why not remove the [code] tag?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 04-24-2017 , 19:29   Why not remove the [code] tag?
Reply With Quote #1

Since the code tag doesn't allow scrolling and it takes a huge amount of the page when using longer codes, and people tell that user to use php tag instead, why not simply remove it, or even better - make it work like the php tag, aka replace it? There's literally no point of having a non-scrollable code block when we already have a better version which is used by everyone who isn't new around here.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
sneaK
SourceMod Moderator
Join Date: Feb 2015
Location: USA
Old 04-24-2017 , 19:40   Re: Why not remove the [code] tag?
Reply With Quote #2

Or it's always nice to

Spoiler
__________________
sneaK is offline
psychonic

BAFFLED
Join Date: May 2008
Old 04-24-2017 , 21:33   Re: Why not remove the [code] tag?
Reply With Quote #3

Remove the [code] tag. Can't scroll and doesn't highlight.

Remove the [php] tag. Almost no one is pasting actual PHP code compared to Pawn or Sourcepawn code.

Remove the [pawn] tag. Highlighting is mediocre and it breaks when quoting, editing.
psychonic is offline
DarkDeviL
SourceMod Moderator
Join Date: Apr 2012
Old 04-25-2017 , 02:35   Re: Why not remove the [code] tag?
Reply With Quote #4

Quote:
Originally Posted by OciXCrom View Post
Since the code tag doesn't allow scrolling and it takes a huge amount of the page when using longer codes, and people tell that user to use php tag instead, why not simply remove it, or even better - make it work like the php tag, aka replace it? There's literally no point of having a non-scrollable code block when we already have a better version which is used by everyone who isn't new around here.
Why not simply remove the PHP tag?

Almost (if not) all boards has the CODE tag. Not all boards have the PHP tag.

In fact, AM is the only board I've seen where there appear to be more for "PHP" (or other tags) than the "CODE" tags. So if you ask me, it would make sense to ditch the PHP tag, and only to keep the CODE tag.

In regards to highlighting and other things, there are occasionally board specific things, such as things only available here on AM, as well as for other boards something only available there.

With most boards out there, pull requests could possibly be sent towards the upstream of such boards to include syntax highlighting also for Pawn/SourcePawn, as well as other coding/scripting languages.


There could be done so many things in regards to different things, but life is never simple, is it? You live yours, I live mine. You have your opinions, I have mine.... In the end, it all turns out that we might go in different directions.

But you're "literally" correct: Everything would indeed be much easier if we all had the same opinions and thoughts. ;-)
__________________
Mostly known as "DarkDeviL".

Dropbox FastDL: Public folder will no longer work after March 15, 2017!
For more info, see the [SRCDS Thread], or the [HLDS Thread].
DarkDeviL is offline
sneaK
SourceMod Moderator
Join Date: Feb 2015
Location: USA
Old 04-25-2017 , 03:22   Re: Why not remove the [code] tag?
Reply With Quote #5

Quote:
Originally Posted by arne1288 View Post
Why not simply remove the PHP tag?
PHP Code:
#Because
"I like" the fancy colors
Kind of a nice visual aid when viewing on the forum, versus the CODE tag.
__________________
sneaK is offline
Timocop
AlliedModders Donor
Join Date: Mar 2013
Location: Germany
Old 04-25-2017 , 05:15   Re: Why not remove the [code] tag?
Reply With Quote #6

Wat there is a pawn tag?!
Didnt know that!

Code:
new String:hello[] = "world\" bye bye"; #emit halt #define HelloDef "My god yes" int myInt = 1; // daw
Timocop is offline
ish12321
Veteran Member
Join Date: May 2016
Old 04-25-2017 , 09:00   Re: Why not remove the [code] tag?
Reply With Quote #7

Code:
for(new i = 0; i < num; i++) {    client_print(0, print_chat, "I too didn't knew it"); }
__________________
['O|s|G'] | Death Wins a.k.a Ish Chhabra was here
ish12321 is offline
Gabe Iggy
Veteran Member
Join Date: Mar 2011
Location: Chile
Old 04-25-2017 , 09:14   Re: Why not remove the [code] tag?
Reply With Quote #8

Quote:
Originally Posted by ish12321 View Post
Code:
for(new i = 0; i < num; i++) {    client_print(0, print_chat, "I too didn't knew it"); }
what do psychonic means it breaks on quoting/editing?
__________________

Last edited by Gabe Iggy; 04-25-2017 at 09:15.
Gabe Iggy is offline
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 04-25-2017 , 10:20   Re: Why not remove the [code] tag?
Reply With Quote #9

If I remember correctly, in some cases it removes all new lines from the pawn tag once you quote someone. May be dependent on which text area style you use? I don't know why, but I've seen it happen. That could be the reason why people avoid it.
klippy is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 04-25-2017 , 10:22   Re: Why not remove the [code] tag?
Reply With Quote #10

Try it with the WHYRYT (idk how it's called) post option enabled and see what happens when you edit a post that contains a pawn tag.

@arne1288 - this is not about different opinions, it's about what's wrong and what's right. Why would you want to see and scroll 5000 lines of code just to read all comments in the thread instead of scrolling pass the code block? I don't think that anyone cares what kind of content is used within the tag, people simply prefer to see the code in some colors rather than in pain black. Here's a simple example that demonstrates the difference between the two tags and why the first one should be removed OR enhanced:

Code:
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
PHP Code:
 Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this?
Can your scroll wheel handle this
__________________

Last edited by OciXCrom; 04-25-2017 at 10:23.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:51.


Powered by vBulletin®
Copyright ©2000 - 2022, vBulletin Solutions, Inc.
Theme made by Freecode