Hi Richard, > On Sat, 16 Feb 2008, Jan Engelhardt wrote: > >> - Enabling word wrapping in LyX-Code environments (in the output PDF, >> LyX itself already wraps it) > > When you want verbatim text, use ctrl-[Enter] to add a newline. That > ensures that the code retains its formatting when compiled and displayed.
The text should be verbatim, but not the formatting. What I want is more like HTML's <p><code>type type type C code this text automatically wraps when too long<br /> but line breaks are respected</code></p> which adjust the line wrapping according to font size. I could use the "Standard" environment with Typewriter text (C-p), but I would probably have the indent at the start of a paragraph :-/ >> Lines wider than a page overflow into the margins and off the page. This >> currently makes it necessary that I manually wrap lyx code. > > Sometimes the LaTeX hyphenation algorithm needs our help. I would not want to provide a hyphenation point in LyX-Code in every possible location, that would just make editing in LyX less usable. > You can provide > hints for where a word can be hyphenated by placing the cursor at the > potential break and using ERT to enter \-. You can put multiple suggestions > in a single word. ... and now without making the hyphen actually appear in the resulting pdf. thanks j