jdavidb (email not shown publicly) http://voiceofjohn.blogspot.com/ J. David Blackstone has a Bachelor of Science in Computer Science and Engineering and nine years of experience at a wireless telecommunications company, where he learned Perl and never looked back. J. David has an advantage in that he works really hard, he has a passion for writing good software, and he knows many of the world's best Perl programmers.
I want to tell my browser to word-wrap in a PRE tag. If line-endings are there, it's fine to respect them, but I want it to assume when it sees lines too wide to display in a PRE tag that it can just fix that for me.
I think you could do this will a bookmarklet written in Javascript that searches all PRE tags of the current pages and modifies line-wrapping layout for them. (Similarly, I use quite often bookmarklets that add/remove underlines of A tags. Nice, when you're colour-blind.)
Use a bookmarklet (Score:2)
CSS (Score:1)
One day, a browser may support
white-space: pre-wrap[w3.org], and you could modify your user stylesheet to use it.