robber2 Posted July 31, 2007 Share Posted July 31, 2007 When I validate, sometimes it sez "error on line 456, column 3".How can I know where that is without physically counting down the page, 1, 2, 3, like that? I use Text (MS/windows) to write my code. Tx. Link to comment Share on other sites More sharing options...
justsomeguy Posted July 31, 2007 Share Posted July 31, 2007 Use a text editor with line numbers. There is a link in my signature to ConTEXT, after you install it look in the options to turn on line numbering.Also, IE gives terrible error messages for Javascript errors. If IE is telling you about a Javascript error on a certain line, the error might not be on that line. I have had IE tell me that I have errors on blank lines before, so I'm not entirely sure how IE determines line numbers. Link to comment Share on other sites More sharing options...
robber2 Posted July 31, 2007 Author Share Posted July 31, 2007 Use a text editor with line numbers. There is a link in my signature to ConTEXT, after you install it look in the options to turn on line numbering.Also, IE gives terrible error messages for Javascript errors. If IE is telling you about a Javascript error on a certain line, the error might not be on that line. I have had IE tell me that I have errors on blank lines before, so I'm not entirely sure how IE determines line numbers.Thank you, I'll take a look at ConTEXT. Link to comment Share on other sites More sharing options...
aspnetguy Posted August 1, 2007 Share Posted August 1, 2007 debug with firefox it is much easier, the firebug extension makes it even easier. Link to comment Share on other sites More sharing options...
Synook Posted August 1, 2007 Share Posted August 1, 2007 But, if you really want to stick to MS Notepad, then the line and column numbers are displayed to the right of the status bar, just click around while you get closer and closer :)But something like FireBug is quite useful, though be careful! It does not display actual source, but rather the source that is parsed (i.e. after JS scripts have run, etc.) Link to comment Share on other sites More sharing options...
robber2 Posted August 1, 2007 Author Share Posted August 1, 2007 But, if you really want to stick to MS Notepad, then the line and column numbers are displayed to the right of the status bar, just click around while you get closer and closer :)But something like FireBug is quite useful, though be careful! It does not display actual source, but rather the source that is parsed (i.e. after JS scripts have run, etc.)Now I know...But something I learned yesterday: turn OFF word wrap, then you'll see the status bar (if enabled) and will be able to ctrl+g to go to a line of text. Only adding this for the sake of someone else's subsequent curiosity. Thanks for the help, y'all! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.