In a node, when code such as the following is >70 columns in length...
#!/usr/bin/perl -w use strict; print "-10--------20--------30--------40--------50--------60--------70 +--------80--------90";
MSIE will not wrap the text (uh... someone in Marketing told me this), but Netscape will wrap the text, putting a red "+" at the beginning of the line of continued text. Here's an attempt at simulating this:
#!/usr/bin/perl -w
use strict;
print "-10--------20--------30--------40--------50--------60--------70
+--------80--------90";

I'm guessing that this site uses the "Everything" package by vroom, but I wasn't able to find the wrapping function in the Everything-0.8.3 code.

Questions:
1. How is the text wrapped?
2. Why does it only work in Netscape?

Replies are listed 'Best First'.
RE: PM feature existing in Netscape (4.61) but not IE (5.01)
by misty (Hermit) on Aug 08, 2000 at 01:17 UTC
    My guess is that person who uses IE and told you that it will not wrap the text, doesn't have the code wrap length set to 70 (that can be done in user settings).
RE: PM feature existing in Netscape (4.61) but not IE (5.01)
by Ozymandias (Hermit) on Aug 08, 2000 at 00:58 UTC
    Um... I'm not sure what problem you're having. It works perfectly fine in mine. IE 5.01, Windows 2000. Also IE 5.01 on Windows NT.

    - email Ozymandias
(meonkeys: updates; question remains unanswered)
by meonkeys (Chaplain) on Aug 08, 2000 at 03:39 UTC
    Re: Ozymandias--After I updated my MSIE to 5.50, it now wraps, inserting a red "+" where necessary.

    Re: misty--I was unable to find any kind of "code wrap length" setting in MSIE.

    Re: turnstep--I agree.

    1. The parsing is done server-side.
    2. This isn't a question of how to do it, just how the creators of Perl Monks did it.
      IE has nothing to do with the 'code wrap length'. This is determined by a value you set in your perlmonks.org settings, and applies only to your perlmonks.org login.

      Once you login, you'll see your user name at the top of the screen. Click that. At the bottom of your homenode, you'll see two options: 'Change your user settings' and 'Edit your user information'. Select 'Change your user settings'. In the 'Miscellaneous' box, you'll see 3 options pertaining to code wrapping. Set these as you see fit, then click 'Submit' at the bottom of the page. This will update your user settings.

      I've tried this in Netscape 4.72, IE 5.01, and IE 5.5, and it works for me in all cases. I've also tried various wrap widths, and wrap options, again, with no problems.

      --Chris

      e-mail jcwren
      meonkeys or is it meoncrack, hmmm?
       ______________________________________________
      |_____¸.·ooO--(> cRaZy is co01. <)--Ooo·.¸_____|
       ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ
        meoncrackies, better than shreddies for breakfast, perfect for that druggie teen who hates everything

        neoncrackies, same great smack, now they glow in the dark!

        Sorry, it's late and I've been working all day. Just thought I'd share some sillyness with the rest of the world.

RE: PM feature existing in Netscape (4.61) but not IE (5.01)
by turnstep (Parson) on Aug 08, 2000 at 01:23 UTC
    The "red plus" effect is HTML and completely browser independent. Should work on all browsers - it's just PRE and FONT tags. Neat trick though.