Lee Maguire graded snobberies, bawdiness, hypocrisy

Posted
15 July 2005
2pm

Category
Uncategorized

Browser word-wrap for text files

Occasionally I’ll be reading a text file in a browser window which hasn’t been formatted for a printer/terminal. But the text in Firefox doesn’t wrap, so as a result I’m sliding the horizontal scrollbar backwards and forwards to read paragraphs of text.

Is this only me? Am I the only one who deals with this? What do other people do? View text files in a tiny font in a full screen browser on a widescreen display?

My first reaction is usually to save the file and open it in a program I know supports auto word wrap. But, given wordwrapping is one of those fundamental features of HTML rendering engines, it seems like a stupid work around. Checking about:config, I’ve found an option for wordwrap inside view source (view_source.wrap_long_lines which is useful to know about) but nothing for the main browser.

I did locate a Bookmarklet: WrapLines (found here) which uses some CSS/DOM magic to force it to word wrap. And while this works, wouldn’t it be better to 1) have something like this built into the browser 2) allow it to be set as a default?