Re: [Htmlvalidator-help] Line numbers while using wrap long lines
Brought to you by:
mgueury
From: [LoN]Kamikaze <LoN...@gm...> - 2006-05-19 12:58:16
|
Marc Gueury wrote: > Hi Change, > > It is designed like this. The 2 features : > - wrap long line > - line number are incompatible. If one is set the other is disabled. > > There is a good reason behind it. The source code is a HTML page. > The line numbers are placed in a css "frame" and the source code in his > own css "frame" > > There is no relation between the 2. Just that the number of lines is the > same. > If the wrapping is set to true. I have no way to match the line numbers > and lines in the source code. > > I tried other algorithms: > For ex, putting the lines number at the beginning of each line. But it > did not work well. > It was a lot too slow and was ugly with wrapping lines. > > So, in short, not possible to fix. And it is intended to work like this > until that a better algorithm is found. > Hope it helps, > > Marc > Here is my solution. I find the performance acceptable. The demo provides buttons to switch between nowrap and normal mode on the fly. |