Page 1 of 1
Line Numbers
Posted: Thu Aug 19, 2010 1:21 pm
by SamCec
I'm new to PHP but learning. When I get an error, it gives the line number. I have been using NotePad (OS=Windows7 ultimate) to see the code within the routine. That does not print line numbers. Is there anyway to print line numbers so that I don't have to count them manually?
Thanks,
Sam
Re: Line Numbers
Posted: Thu Aug 19, 2010 1:33 pm
by AbraCadaver
SamCec wrote:I'm new to PHP but learning. When I get an error, it gives the line number. I have been using NotePad (OS=Windows7 ultimate) to see the code within the routine. That does not print line numbers. Is there anyway to print line numbers so that I don't have to count them manually?
Thanks,
Sam
The free Notepad++ as well as many other editors and IDEs (Integrated Development Environments) have this capability.
Re: Line Numbers
Posted: Thu Aug 19, 2010 2:25 pm
by SamCec
AbraCadaver wrote:SamCec wrote:I'm new to PHP but learning. When I get an error, it gives the line number. I have been using NotePad (OS=Windows7 ultimate) to see the code within the routine. That does not print line numbers. Is there anyway to print line numbers so that I don't have to count them manually?
Thanks,
Sam
The free Notepad++ as well as many other editors and IDEs (Integrated Development Environments) have this capability.
Thank you. That's exactly what I was looking for.
Sam
Re: Line Numbers
Posted: Thu Aug 19, 2010 2:54 pm
by Doug G
FYI if you are in notepad you can jump the cursor to a line by number. Look for a 'go to' menu choice or keystroke (I think it's ctrl-G)
Re: Line Numbers
Posted: Thu Aug 19, 2010 2:57 pm
by SamCec
Thank you for the helpful tip.
Sam