Re: Why not remove the [code] tag?
Lol, did someone add scrolling just when I posted this? :)
|
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.
|
Re: Why not remove the [code] tag?
Quote:
|
Re: Why not remove the [code] tag?
I guess the topic is solved since some anonymous guy anonymously added scrolling.
|
Re: Why not remove the [code] tag?
The code block has always had a height limit with scrolling.
|
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> |
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. |
Re: Why not remove the [code] tag?
Quote:
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:
|
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?
|
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
|
| All times are GMT -4. The time now is 01:19. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.