I use the white-space: pre-wrap style for the HTML <pre> element to allow line breaks when they are longer than the browser window.
Unfortunately, these broken lines also look as if they have a line break at the end; the user cannot see if it was an automatic line break.
Is there a way to show either at the end of the line that the completion is happening (as emacs does with the \ character), or at the beginning of the wrapped lines that they are a continuation of the previous line (for example, using β )?
Copy and paste must not copy continuation characters.
Code example :
<pre style="white-space: pre-wrap">for i in range(19): selwidth=5; selheight=1000; image = gimp.image_list()[0];posx=initx+i*90; pdb.gimp_image_select_polygon(image, 2, 8, [posx, 0, posx+selwidth, 0, posx+selwidth-selheight, selheight, posx-selheight, selheight]);</pre >
Preferred rendering with β at the beginning of continuation lines:
for i in range(19): selwidth=5; selheight=1000; image = gimp.image_list()[0];posx= βinitx+i*90; pdb.gimp_image_select_polygon(image, 2, 8, [posx, 0, posx+selwidth, 0, βposx+selwidth-selheight, selheight, posx-selheight, selheight]);