Forum Moderators: open

Message Too Old, No Replies

Bug?

[code] [/code] feature

         

moltar

3:43 am on Aug 4, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Is this a bug or what? When I use [code ] [/code ] it does not apply it to the whole thing. Here is an example. The following text was all covered with [code ] [/code ].

As you notice only shebang line is formated.


#!/usr/bin/perl

print "hello world";

(this is text after [/code), just for test)

MonkeeSage

3:51 am on Aug 4, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



moltar:

I've noticed that it behaves differently whether there are extra line-breaks in the code or not.

For example, when there are no extra line-breaks, everything is styed the same:

<started code tag on line after this>

<p id="validButton">
<a href="http://validator.w3.org/check/referer"><img
src="http://www.w3.org/Icons/valid-xhtml10"
alt="Valid XHTML 1.0!" height="31" width="88"
style="border: none!important;" /></a>
</p>

<ended code tag on line before this>

But yet, with line breaks, only the first line is styled:

<started code tag on line after this>

<p id="validButton">

<a href="http://validator.w3.org/check/referer"><img
src="http://www.w3.org/Icons/valid-xhtml10"
alt="Valid XHTML 1.0!" height="31" width="88"
style="border: none!important;" /></a>
</p>


<ended code tag on line before this>

Jordan

moltar

4:06 am on Aug 4, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I see. But it is a bug, right? If I am not mistaken anything, I think it worked fine before, even with extra lines. But I am not sure.

MonkeeSage

4:18 am on Aug 4, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I haven't been around long enough to know what it used to do, but I would imagine that it is a bug...I can't think of any reason for doing it on purpose, at least.

At first I thought it might be to make the first line a code description, but seeing as the other lines after the first extra line-break don't appear to have any styling at all; on second thought, I'd cast my lot on it being a bug.

Jordan

vincevincevince

7:16 am on Aug 4, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It's been around for a while. Just insert a single space into the blank line,

and all

is well

MonkeeSage

12:36 pm on Aug 4, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Domo arrigato vincevincevince-web-sensei, that is handy to know! :)

Jordan

takagi

12:53 pm on Aug 4, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



This is a quote.
This is a quote.
This is a quote.
This is a quote.

This is a quote.
This is a quote.

This is a quote.
This is a quote.
This is a quote.
This is a quote.

This is a quote.
This is a quote.

The trick with the space works also nice for quotes. The first example has an empty line, the second has a line with just a single space.