Re: [Htmlvalidator-help] Line numbers while using wrap long lines
Brought to you by:
mgueury
From: [LoN]Kamikaze <LoN...@gm...> - 2006-05-19 17:52:04
|
Marc Gueury wrote: > I like your idea a lot. Just that it is not as simple as this. > The source of the page is written in HTML in ""several"" pre tags. > Inside the pre-tags, there are a lot of span tags with colors. >=20 I experimented with <pre> tags, it's pretty easy to cope with that. > You can get an idea by doing this: > - take a page in firefox > - look the source > - select all > - copy the source in the clipboard > Open Mozilla composer or NVU > - create a blank page > - paste the HTML in the HTML preview > - look the HTML source. >=20 > It gives something like this: >=20 I'll give your example a try. >=20 > The problem with your approach is that > - it does not take into account the pre and the span. > And I do not see how to adapt this algorithm for it. Mostly when > there are several pre > tags. > - also copy paste of the source copy the line number. What is not expec= ted. >=20 Yeah, but copy and paste is rather rare in this case, isn't it? You normally work on the original source of your page (especially if it is dynamically generated). If you want to report problems on a page it's even useful to be able to copy the line numbers. It's also easy to switch the numbers off on the fly, with a little CSS. > Whatever, the idea is bright. >=20 > Marc >=20 Thanks. |