View Full Version : Go to line tool
Blake
02-26-2007, 01:48 PM
I made a nifty tool to help in writing php scripts, which I've put up on my website. You drag and drop a php script onto it, it asks you for a line number, and then it will display that line for you, to save you the trouble of counting. Anyone can download it from my website at:
http://www.blake-foster.com/lineReader.exe
I wrote it when I was dealing with things like "parse error on line 2439," and I didn't want to count that high. I've found it very useful, so I thought I would share it with my fellow php coders. :)
Shotgun Ninja
02-26-2007, 01:54 PM
Kewl beans. What'd you use to make that program? (Language, editor, compiler would be appreciated.)
Blake
02-26-2007, 01:55 PM
I used C++ / Borland CBuilderX personal (the free version). I'll give you the source if you're interested.
EDIT: I've uploaded the source at www.blake-foster.com/lineReader.cpp
There's not much to it.
As far as I can see, there's nothing to stop this from being platform independent except:
system("pause");This is horrible way of achieving a pause. Instead, try calling cin.ignore().
Shotgun Ninja
02-26-2007, 02:23 PM
Yeah, I'd like to see where you got the compiler from. I've been looking for a free C++ compiler for a long time.
Blake
02-26-2007, 02:41 PM
Borland doesn't make the free compiler anymore. However, Microsoft makes a free version of visual studio, which you can get here:
http://msdn.microsoft.com/vstudio/express/
Or, better, you can use the gcc compiler collection, which is bundled with Dev-C++ (http://www.bloodshed.net/devcpp.html).
djr33
02-26-2007, 10:43 PM
This is useful, but many editors (notepad+, I think, Dreamweaver, etc.) just number the lines for you.
Nice little app anyway, though.
mburt
02-27-2007, 11:12 AM
Or, better, you can use the gcc compiler collection, which is bundled with Dev-C++.
Yeah, I used to use Dev C++, but now I use CodeBlocks. You can get widgets and equivalent for it.
By the way, nice app. It would make a nice project to this this in Win32 as well.
Shotgun Ninja
02-27-2007, 01:45 PM
Thanks guys.
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.