Rosetta Code:Village Pump/Line length: Difference between revisions

From Rosetta Code
Content added Content deleted
(init)
 
No edit summary
Line 4: Line 4:


Maybe we could define the maximum number of characters a line of code can contain on Rosettacode ?
Maybe we could define the maximum number of characters a line of code can contain on Rosettacode ?
:I had put a few output examples in a div box using:
:<pre><div style="width:full;overflow:scroll"></pre>
:That just puts in a scrollbar. I don't think that's what you want though is it? --[[User:Mwn3d|Mwn3d]] 20:19, 11 August 2009 (UTC)

Revision as of 20:20, 11 August 2009

In my web browser there are often long lines of codes that end out of the right border of the window. I see that this occurs when the line of code is made of more than 85 characters. When programming it is recommended to limit the line length to some bound, it is even sometimes set in some vim syntax configuration files.

Maybe we could define the maximum number of characters a line of code can contain on Rosettacode ?

I had put a few output examples in a div box using:
<div style="width:full;overflow:scroll">
That just puts in a scrollbar. I don't think that's what you want though is it? --Mwn3d 20:19, 11 August 2009 (UTC)