RE: [Zope] Text won't Wrap on Zope site
Alex wrote:
(backslashes)
Cees> If STX cannot handle this, it may be a good idea to add it - Cees> nothing irritates a lot of people more than pages that don't Cees> resize with their browser for non-obvious reasons (the obvious Cees> reasons being broad images or tables).
That sounds like a good solution. Variable width text should always wrap. That's one of my biggest pet peeves -- variable width text that does not wrap.
Sorry, it ain't gonna happen. What does a backslash mean in a SQL statement? What does it mean in an HTML snippet? Inserting characters that the author didn't intend to be in there is evil. Asking the authors to re-type all their code so that it will display in 640 pixels probably isn't realistic. Can someone take a look at other sites (such as sitebuilder or devnet) and find out how they handle this issue? --Paul
Paul@digicool.com said:
Sorry, it ain't gonna happen. What does a backslash mean in a SQL statement? What does it mean in an HTML snippet?
Both languages are free-format so there is no problem here. Anyway, I was never suggesting that you butcher author's code snippets in order to fit them into a certain screen size. However, you could come up with a requirement for code snippets not to exceed a line length of, say, 72. This should render fine in fairly small windows with a readable Courier font. For book production, you'll quickly have too long lines anyway (I've hardly seen any computer books that'll fit 80 characters of monospaced font on a line within the margins). Asking authors to take a bit of care so that their output becomes better usable is hardly unrealistic, I'd say. (and this is the last thing I'm posting on the topic before we start flaming :-)) -- Cees de Groot http://www.cdegroot.com <cg@cdegroot.com>
On Thu, 15 Jul 1999 09:37:41 -0400, Paul Everitt <Paul@digicool.com> said: Paul> Sorry, it ain't gonna happen. What does a backslash mean in a SQL Paul> statement? What does it mean in an HTML snippet? Paul> Inserting characters that the author didn't intend to be in there is Paul> evil. Asking the authors to re-type all their code so that it will Paul> display in 640 pixels probably isn't realistic. Paul> Can someone take a look at other sites (such as sitebuilder or devnet) Paul> and find out how they handle this issue? I think Alex Staubo explained the problem pretty well: when you have <pre> in tables, the table columns take on the size of the widest line. sitebuilder.com -- is in German and I don't see any code snippets. :-) www.codeguru.com -- doesn't use tables where source code is involved. www.webmonkey.com -- has the same problem: var width text does not wrap. The solution might involve style-sheets? Donnow. -- Alex Rice | alrice@swcp.com | http://www.swcp.com/~alrice Current Location: N. Rio Grande Bioregion, Southwestern USA
participants (3)
-
Alex Rice -
cg@cdegroot.com -
Paul Everitt