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

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 , 18: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 , 18: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 , 20: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 , 01: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 , 02: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 , 04: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 , 08: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
gabuch2
AlliedModders Donor
Join Date: Mar 2011
Location: Chile
Old 04-25-2017 , 08: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 gabuch2; 04-25-2017 at 08:15.
gabuch2 is offline
GrO
Veteran Member
Join Date: Jun 2010
Location: Poland
Old 05-03-2017 , 06:24   Re: Why not remove the [code] tag?
Reply With Quote #9

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"); }
Code:
public Action:SendMessage(Handle:forum, any:client) {     if(IsClientConnected (client))     PostMessage(client,"Me neither ;o"); } return Life_Continue;
__________________

Last edited by GrO; 05-03-2017 at 10:25.
GrO is offline
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 04-25-2017 , 09:48   Re: Why not remove the [code] tag?
Reply With Quote #10

Quote:
Originally Posted by Timocop View Post
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
;)
__________________
edon1337 is offline
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 04:09.


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