Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

Pomoc pśepytaś

Glědajśo se wobšudy pomocy. Njenapominajomy was nigda, telefonowy numer zawołaś, SMS pósłaś abo wósobinske informacije pśeraźiś. Pšosym dajśo suspektnu aktiwitu z pomocu nastajenja „Znjewužywanje k wěsći daś“ k wěsći.

Learn More

On the page http://docstore.mik.ua/orelly/perl/prog3/ch09_01.htm there are code examples using the <CODE> tag, which is rendered without newlines (which are present in the source). This is on FF5.0 on Win7-64

  • 1 wótegrono
  • 3 maju toś ten problem
  • 4 naglědy
  • Slědne wótegrono wót cor-el

more options

Example of the rendered HTML I see:

while (<>) { @tmp = split; # Split elements into an array. push @AoA, [ @tmp ]; # Add an anonymous array reference to @AoA. }

This comes from this HTML source:

<CODE>while (<>) {
    @tmp = split;           # Split elements into an array.
    push @AoA, [ @tmp ];    # Add an anonymous array reference to @AoA.
}</CODE>

I thought that the definition for the <CODE> tag was that newlines were to be rendered same as in the source. Or should the makers of these pages change to or add the <PRE> tag?

Example of the rendered HTML I see: while (&lt;&gt;) { @tmp = split; # Split elements into an array. push @AoA, [ @tmp ]; # Add an anonymous array reference to @AoA. } This comes from this HTML source: <blockquote> <pre><nowiki><CODE>while (<>) { @tmp = split; # Split elements into an array. push @AoA, [ @tmp ]; # Add an anonymous array reference to @AoA. }</CODE></nowiki></pre> </blockquote> I thought that the definition for the &lt;CODE&gt; tag was that newlines were to be rendered same as in the source. Or should the makers of these pages change to or add the &lt;PRE&gt; tag?

Wót cor-el změnjony

Wšykne wótegrona (1)

more options

Yes, you need to use <PRE> if you can to show the formatting if <BR> isn't used, otherwise white-space is rendered like usual in HTML. CODE only makes Firefox use a monospace font.