I recently changed my user settings to enable the "Large Code Font" option, which (for me at least) makes the code a lot easier to read.

However, enabling this option seems to mess up the line wrapping for code sections. Or, more specifically, it appears that the line wrapping is not updated to take into account the increased font size.

For example in Nesting regexen the code line ending in "hoverHelp)" does not get wrapped at all when "Large Code Font" is enabled, causing the nodelets to appear off-screen.

Is there anything I can do in my settings to fix this, or will this have to been changed by pmdev ?

  • Comment on Large code font breaks proper code wrapping

Replies are listed 'Best First'.
Re: Large code font breaks proper code wrapping
by perrin (Chancellor) on Jul 12, 2005 at 16:34 UTC
    As you can see on the AccuWeather radar, we have a large code front coming in from the west, which will be mixing with the warm air blowing in from Cape Code. This is expected to break a lot of wrapping, especially in the Verdana and Courier areas, and residents are advised to leave the area.

      You sound funny. Are you sure you're not coming down with a head code?

      And have you notified the local Serif about the approaching emergency? (But then maybe that's a leading question . . .)

      --
      We're looking for people in ATL

        I considered voting your reply down. But I'm not code hearted.
Re: Large code font breaks proper code wrapping
by davidrw (Prior) on Jul 12, 2005 at 16:03 UTC
    just a general font-size/browsing tip (dunno if it helps your specific case, but it's how i deal w/font size so i don't have to keep every large all the time): your browser can resize the fonts very quicky for you. On IE & Firefox (on windows), if you hold ctrl and use the mouse scroll wheel (or scroll wheel feature of a touchpad) it will increase/decrease the font size. Firefox also has the ctrl-- and ctrl-+ (ctrl minus/plus) hotkeys to do it as well.. lets you very quickly bump up the font when reading tiny code and restore it for normal text..
Re: Large code font breaks proper code wrapping
by Tanktalus (Canon) on Jul 12, 2005 at 17:46 UTC

    In your User Settings, what is the "Code Wrap Length" set to? Just lower the value. That node you point to works fine for me, but I probably have a wider screen than you ;-)

      Note that selected user settings are publicly viewable via the xml display of a homenode, including the code wrap settings so that people having problems can be helped by other monks. In this case, I see from [id://Crackers2;xml] that s/he has autowrap off and wraplength set to 120. So if s/he is using a brower that allows autowrap, s/he should set it; otherwise reduce wraplength.

        Thanks Tanktalus and ysth. (late reply, was on vacation)