Results 1 to 10 of 10

Thread: Go to line tool

  1. #1
    Join Date
    Feb 2007
    Posts
    116
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Go to line tool

    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.
    "Rock and roll ain't noise pollution." - AC/DC

    http://www.blake-foster.com

  2. #2
    Join Date
    Oct 2006
    Posts
    110
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Kewl beans. What'd you use to make that program? (Language, editor, compiler would be appreciated.)

  3. #3
    Join Date
    Feb 2007
    Posts
    116
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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.
    "Rock and roll ain't noise pollution." - AC/DC

    http://www.blake-foster.com

  4. #4
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    As far as I can see, there's nothing to stop this from being platform independent except:
    Code:
    system("pause");
    This is horrible way of achieving a pause. Instead, try calling cin.ignore().
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  5. #5
    Join Date
    Oct 2006
    Posts
    110
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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.

  6. #6
    Join Date
    Feb 2007
    Posts
    116
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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/
    "Rock and roll ain't noise pollution." - AC/DC

    http://www.blake-foster.com

  7. #7
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Or, better, you can use the gcc compiler collection, which is bundled with Dev-C++.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  8. #8
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    This is useful, but many editors (notepad+, I think, Dreamweaver, etc.) just number the lines for you.
    Nice little app anyway, though.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  9. #9
    Join Date
    Jul 2006
    Location
    Canada
    Posts
    2,581
    Thanks
    13
    Thanked 28 Times in 28 Posts

    Default

    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.
    - Mike

  10. #10
    Join Date
    Oct 2006
    Posts
    110
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks guys.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •