Re: [Htmlvalidator-help] Beta 0.835 - Still line numbering problem
Brought to you by:
mgueury
From: Marc G. <mg...@sk...> - 2007-01-28 16:03:27
|
Hello, It is quite long to explain. But you have to imagine that the source of=20 a HTML is represented as HTML in Firefox. Nice HTML with a lot of <pre> tags. So, to put the line numbers, there are several ways. 1) rewrite everything (it would be very long). There is a bug in=20 Bugzilla for it. You can vote to get it fixed ! https://bugzilla.mozilla.org/show_bug.cgi?id=3D246620 2) modify the HTML containing the source of the HTML to add line numbers. If I do this, I have 2 possibilities a) before each line, add a line number. But it has a lot of inconvenients. The line number become=20 selectable. And it does not align well vertically. But the real problem is that it is very slow. Adding lines to a=20 page with 5000 lines takes 30 sec what nobody is ready to wait so long. If this was done, line wrapping would be possible. In short this give this: =20 Line without wrapping 1. This is a long long long long long line. 2. It it line 2. Choice A 1. This is a long long long long long line. 2. It it line 2. b) add a frame next to the source code with line numbers: This is what I do. It is a lot faster about 2 sec or less for=20 5000 lines. But if you do line-wrapping the line will not coincide between=20 the 2 frames. This is why the line-wrapping and line-number are incompatible=20 for now. In short this give this: =20 Line =B2without wrapping 1. 2. This is a long long long long long line. It it line 2. Choice B 1. 2. This is a long long long long long line. It it line 2. So, like you see both way have problems: 1) is a too big work, has to be done in C/C++ 2) a) is too slow b) works but no line numbers. I am open to any good solution :-) I hope it explains the problem and why it is not solvable easily. Marc Spectroscope wrote: > Just loaded the new beta. I'm aware that this has been discussed (I wro= te > myself earlier that there was another thread) but I can't find this dis= cussion > anymore. > > So her it goes again: When I enable "Show line numbers" in the "View" m= enu the > two menu items "Wrap long lines" and "Syntax highlighting" get lost. Wh= ile the > latter feature doesn't seem to be affected the wrapping turns off and c= an't > turned on again, even when you disable the line numbering after that. > > Any chance of a fix for that? > > -----------------------------------------------------------------------= -- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share= your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3D= DEVDEV > _______________________________________________ > Htmlvalidator-help mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlvalidator-help > > =20 |