I looked at David's "text-wrap" sample and added another attempt: every sequence of two consecutive spaces is replaced by a non-breaking space and a regular space.
This keeps the text indentation that would be obtained with a <pre> while still allowing line wrapping.
I tried to find a CSS trick to add a mark at the beginning of a continuation line, but CSS only has ":first-line" and no ":other-lines".
Please have a look at it, it seems to be to be a good compromise between keeping code indentation and readability of wrapped lines.
Sylvain
-- Sylvain Wallez Anyware Technologies http://www.apache.org/~sylvain http://www.anyware-tech.com { XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects } Orixo, the opensource XML business alliance - http://www.orixo.com
