AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Off-Topic (https://forums.alliedmods.net/forumdisplay.php?f=15)
-   -   Why not remove the [code] tag? (https://forums.alliedmods.net/showthread.php?t=296599)

OciXCrom 04-24-2017 18:29

Why not remove the [code] tag?
 
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.

sneaK 04-24-2017 18:40

Re: Why not remove the [code] tag?
 
Or it's always nice to

Spoiler

psychonic 04-24-2017 20:33

Re: Why not remove the [code] tag?
 
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.

DarkDeviL 04-25-2017 01:35

Re: Why not remove the [code] tag?
 
Quote:

Originally Posted by OciXCrom (Post 2514962)
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. ;-)

sneaK 04-25-2017 02:22

Re: Why not remove the [code] tag?
 
Quote:

Originally Posted by arne1288 (Post 2515023)
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.

Timocop 04-25-2017 04:15

Re: Why not remove the [code] tag?
 
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

ish12321 04-25-2017 08:00

Re: Why not remove the [code] tag?
 
Code:
for(new i = 0; i < num; i++) {    client_print(0, print_chat, "I too didn't knew it"); }

gabuch2 04-25-2017 08:14

Re: Why not remove the [code] tag?
 
Quote:

Originally Posted by ish12321 (Post 2515094)
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?

klippy 04-25-2017 09:20

Re: Why not remove the [code] tag?
 
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.

OciXCrom 04-25-2017 09:22

Re: Why not remove the [code] tag?
 
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


OciXCrom 04-25-2017 09:24

Re: Why not remove the [code] tag?
 
Lol, did someone add scrolling just when I posted this? :)

gabuch2 04-25-2017 09:36

Re: Why not remove the [code] tag?
 
It's WYSIWYG (What you see is what you get) :P Early implementations are very buggy, like AM's for example. No surprise it breaks everything.

edon1337 04-25-2017 09:48

Re: Why not remove the [code] tag?
 
Quote:

Originally Posted by Timocop (Post 2515048)
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

;)

OciXCrom 04-25-2017 13:45

Re: Why not remove the [code] tag?
 
I guess the topic is solved since some anonymous guy anonymously added scrolling.

asherkin 04-25-2017 14:24

Re: Why not remove the [code] tag?
 
The code block has always had a height limit with scrolling.

OciXCrom 04-25-2017 14:35

Re: Why not remove the [code] tag?
 
I don't think so. There have been many cases in which users used the [code] tag for huge codes and it was expanded at the entire page. That was the reason for making this thread. Or... Did it confuse it with the [html] tag? I don't really see any visible difference between [code] and [html]. Just noticed that [html] doesn't have scrolling, so it would be nice if that's added, or simply remove it, since I don't think it makes much difference:

HTML Code:

<h2>Welcome to the HTML editor!</h2>
<p>Just type the HTML and it will be shown below.</p>

<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed elementum neque id magna. Mauris sollicitudin nisi sit amet sem. Etiam sit amet lectus a velit interdum facilisis. Vestibulum ante ipsum primis in faucibus orci <strong>luctus et ultrices posuere</strong> cubilia Curae; In tincidunt eleifend neque. Maecenas interdum, neque in fringilla pellentesque, lacus massa eleifend elit, nec scelerisque nulla orci a nunc. Quisque sollicitudin. Sed pulvinar lacus id lacus. Vestibulum imperdiet tellus eget risus. Quisque libero nisl, feugiat eu, euismod at, elementum eget, tellus. <a href="http://www.clesto.com">Clesto.com</a></p>

<img src="http://www.google.se/images/google_80wht.gif" alt="Google logo">

<h2>Heading in h2, som more sample text</h2>

<p>Phasellus sem odio, varius quis, cursus at, ullamcorper eget, turpis. Maecenas a mi. Mauris dignissim lectus malesuada odio. Duis elit arcu, lobortis ut, porta ac, venenatis ornare, odio. Pellentesque scelerisque. Ut elementum laoreet massa. Suspendisse hendrerit odio eget turpis. Cras tellus dui, malesuada id, adipiscing ut, laoreet sed, magna. Phasellus scelerisque aliquet ligula. Quisque vitae elit sit amet enim suscipit interdum. Curabitur laoreet, mauris sit amet aliquet interdum, pede sapien malesuada metus, in tincidunt turpis justo id arcu. Donec gravida odio ac lectus. Nam rutrum ante in nisi laoreet aliquet. Sed at ante.</p>

<h3>Heading in h3, som more sample text</h3>

<p>Nulla facilisi. Nullam cursus scelerisque erat. Praesent convallis rhoncus dui. In hac habitasse platea dictumst. Nullam pellentesque. Mauris ac orci. Donec dictum. Etiam purus tortor, elementum a, posuere nec, pulvinar id, ipsum. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Quisque vel justo. Nullam posuere purus sed arcu.</p>

<ul>
        <li>Nulla facilisi.</li>
        <li>Pellentesque habitant morbi</li>
        <li>Quisque vel justo.</li>
        <li>Nullam posuere purus sed arcu.</li>
</ul>

(the colors are barely noticeable)

asherkin 04-25-2017 14:53

Re: Why not remove the [code] tag?
 
There was a missing { in the template for the [html] tag that was causing the height restriction to not get emitted into the HTML correctly, this is now fixed.

EDIT: The [code], [html], and [php] tags are all from standard vBulletin, we're not going to go and remove core BBCode tags.

Timocop 04-26-2017 03:32

Re: Why not remove the [code] tag?
 
Quote:

Originally Posted by edon1337 (Post 2515134)
;)

Ah i see.

Also seems like the pawn tag isnt actually a real tag, its just some kind parser tag.
If you switch the "Editor Mode" (in the top right corner) 4 times (Or hit Preview post) with a pawn tag somewhere you can see that the pawn tag is gone and instead its font and color hardcoded.

Also if you use a pawn tag inside a pawn tag (bug):
Code:
<!-- Code block --> <div style="margin:20px; margin-top:5px"> <div class="smallfont" style="margin-bottom:2px">Code:</div> <pre class="alt2" dir="ltr" style="margin: 0px;padding: 6px;border: 1px inset;width: auto; height: px; text-align: left; overflow: auto"><div class="pawn" style="font-family: monospace;"><font face=<span style="color: #800080;">"monospace"</span>><font face=<span style="color: #800080;">"monospace"</span>><font face=<span style="color: #800080;">"monospace"</span>><font face=<span style="color: #800080;">"monospace"</span>>new val = <span style="color: #0000dd;">1</span></font></font></font></font></div></pre> </div> <!-- /Code block -->


PHP tag inside PHP tag (correct):
PHP Code:

[PHP]new val 1

[/PHP]

OciXCrom 04-26-2017 08:46

Re: Why not remove the [code] tag?
 
There's nothing correct about having [/php] outside of it. You can't use multiple same tags one in another - what's the point of doing that?

Timocop 04-26-2017 16:38

Re: Why not remove the [code] tag?
 
Of course its correct having [/PHP] outside of it. The PHP tag (and any other) should stop at the first [/PHP] encounter. After that it becomes text again. Unlike the PAWN tag which breaks and prints its HTML code, because its not a "real tag".
Here is a visual what happens:
Spoiler

klippy 04-26-2017 17:43

Re: Why not remove the [code] tag?
 
The pawn tag representation is astonishing. Pretty accurate as well.

404UserNotFound 05-03-2017 02:36

Re: Why not remove the [code] tag?
 
Quote:

Originally Posted by OciXCrom (Post 2515119)
Code:

Can your scroll wheel handle this?
PHP Code:

 Can your scroll wheel handle this


My scroll wheel handles it just fine. Roughly 5 scrolls to hit the bottom or I can enable a 15ms autorepeat on scrolldown if I want to (Steelseries Engine).

Quote:

Originally Posted by asherkin (Post 2515214)
The code block has always had a height limit with scrolling.

This. 100%

GrO 05-03-2017 06:24

Re: Why not remove the [code] tag?
 
Quote:

Originally Posted by ish12321 (Post 2515094)
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;

OciXCrom 05-03-2017 07:00

Re: Why not remove the [code] tag?
 
Quote:

Originally Posted by 404UserNotFound (Post 2517861)
My scroll wheel handles it just fine. Roughly 5 scrolls to hit the bottom or I can enable a 15ms autorepeat on scrolldown if I want to (Steelseries Engine).



This. 100%

Probably because you're writing this after it has been fixed. :bacon!:

404UserNotFound 05-03-2017 15:08

Re: Why not remove the [code] tag?
 
Quote:

Originally Posted by OciXCrom (Post 2517918)
Probably because you're writing this after it has been fixed. :bacon!:

Oh :P

That makes sense LOL

GrO 05-06-2017 03:10

Re: Why not remove the [code] tag?
 
I think that line numbers would be useful in [PAWN] message window.


EDIT:

I've also noticed a little issue with horizontal scrolling, like in this spoiler. You have to scroll to the bottom to be able to read the whole text at the top of the spoiled message.

Maybe a word wrap could be useful or duplicated horizontal scroll bar?


All times are GMT -4. The time now is 01:19.

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