Re: Line numbers for errors...

On Fri, 14 Apr 2006, Dan Hopper wrote:

> It's nice that the validator tells me which line of my code has an error -
> however - How do I correlate those line numbers with my actual code?

Preferably by using an editing tool that shows line numbers or lets you 
move to a line by its number. Failing this, you can use the validator's 
Extended Interface and request for source code listing.

> Would be nice if your validator provided line numbers with the code list
> that it offers at the end of the error list.

Well, it does, when source listing is requested.

> They don't match up...

Can you specify a particular mismatch you have observed?

I bet this is a matter of mismatch between what you regard as "source", 
e.g. PHP file, and what validators and browsers and search engines regard 
as "source", namely the HTML document sent by the server. There is no way 
a validator (or a browser) could relate the HTML source to (e.g.) the PHP 
file, since the latter is completely invisible to it.

-- 
Jukka "Yucca" Korpela, http://www.cs.tut.fi/~jkorpela/

Received on Saturday, 15 April 2006 12:31:23 UTC