• Welcome to PlanetSquires Forums.
 

WinFBE Suite 1.8.2 (November 8, 2018)

Started by Paul Squires, November 08, 2018, 05:39:07 PM

Previous topic - Next topic

raymw

I don't think it would be right to word wrap code samples, unless the code language was one that insisted on line terminators. Since it seems the code text almost fits the allowed width, with not much movement required on scroll bars, would it be worth while, instead of scroll bars, to alter the font size. e.g., find longest line, get number of characters in said line (I'm guessing it will be fixed pitch, e.g. courier or similar), get the ratio of character cell, width to height, then adjust font size  by dividing the width of display window by number of characters to get width of character, then calculate font size based on ratio of width/height of character. No idea if that is easily possible using css, if that is what you have to use.

Best wishes,

Ray