Thread: Which is the best editor for C code etc?

  1. #31
    Fountain of knowledge.
    Join Date
    May 2006
    Posts
    794
    Well I found a way to run notepad++ with per directory session info
    Slight problem is it leaves a batch file window open.

    Might be able to sort that out though - not sure.

  2. #32
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    > Might be able to sort that out though - not sure.
    Run notepad++ with this command.
    start notepad++
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #33
    Fountain of knowledge.
    Join Date
    May 2006
    Posts
    794
    Quote Originally Posted by Salem View Post
    > Might be able to sort that out though - not sure.
    Run notepad++ with this command.
    start notepad++
    Hmmmm well that works but...

    Well here is the batchfile.

    Code:
    copy session.xml   "c:\Documents and Settings\HP_Owner\Application Data\Notepad++\session.xml"
    start notepad++
    copy   "c:\Documents and Settings\HP_Owner\Application Data\Notepad++\session.xml" session.xml
    You see I need to wait untill notepad has finished to copy the session info back,
    and of course the above does not wait untill notepad has finished, so I will get the
    same session every time. It gets rid of the window which is nice though.

  4. #34
    Fountain of knowledge.
    Join Date
    May 2006
    Posts
    794
    However... if I create a batch file called note as bellow.
    Code:
    copy session.xml   "c:\Documents and Settings\HP_Owner\Application Data\Notepad++\session.xml"
    "C:\Program Files\Notepad++\notepad++.exe"
    copy   "c:\Documents and Settings\HP_Owner\Application Data\Notepad++\session.xml" session.xml
    exit
    And the another called whatever.bat
    Code:
    start /min note.bat
    Then run whatever.bat, it seems to work, I believe except, I get a minimised DOS window
    when it is running, which is better but not ideal.
    It would certaintly be useful though because I tend to have 2 or 3 different configurations
    for notepad with half a dozen files in each.

  5. #35
    Fountain of knowledge.
    Join Date
    May 2006
    Posts
    794
    Think I have figured out a way to get rid of the window now.
    Will try it later.

  6. #36
    Woof, woof! zacs7's Avatar
    Join Date
    Mar 2007
    Location
    Australia
    Posts
    3,459
    Personally I love, and use SciTE (both on Windows and Linux).

    I'm not hardcore, so I don't tend to use vi for everything other than system things.

  7. #37
    l'Anziano DavidP's Avatar
    Join Date
    Aug 2001
    Location
    Plano, Texas, United States
    Posts
    2,743
    I used to use Scite, but then I downloaded Notepad++ and discovered it was better. I really like Notepad++ a lot. I still have Scite lying around though.

    Here is what I do:

    Notepad++: I use this for PHP and Python scripting, as well as C/C++ programs that I intend to compile with gcc/g++, and then most probably copy over to a Linux machine.

    Code::Blocks: I use this for large C/C++ projects with which I want portability (since the compiler I have it using is gcc)

    VC++: I use this for some C++ coding, but mostly for C#. VC++ is actually a very nice IDE.

    vim: Whenever I am on Linux I will use this, or if I am SSH'd into a computer and editing code in the terminal.
    My Website

    "Circular logic is good because it is."

  8. #38
    Reverse Engineer maxorator's Avatar
    Join Date
    Aug 2005
    Location
    Estonia
    Posts
    2,318
    I use Notepad++ for everything (even as a hex editor) except C/C++ projects... it even has an easy-to-use FTP plugin.

    What I like about Notepad++ is that it is clean. You have a menu bar, toolbar, status bar and a nice big edit box. It also looks nice - no annoying themes.

    I use Code::Blocks and Dev-C++ for C/C++ projects. Code::Blocks looks so yummy (the font).
    "The Internet treats censorship as damage and routes around it." - John Gilmore

  9. #39
    Woof, woof! zacs7's Avatar
    Join Date
    Mar 2007
    Location
    Australia
    Posts
    3,459
    Shame it's not portable, otherwise I'd love to use it. One of the main reasons I use SciTE is I can use it on Linux and Windows and it's identical.

    No I don't fancy porting it, nor running it under wine

  10. #40
    Fountain of knowledge.
    Join Date
    May 2006
    Posts
    794
    Quote Originally Posted by maxorator View Post
    I use Notepad++ for everything (even as a hex editor) except C/C++ projects... it even has an easy-to-use FTP plugin.

    What I like about Notepad++ is that it is clean. You have a menu bar, toolbar, status bar and a nice big edit box. It also looks nice - no annoying themes.

    I use Code::Blocks and Dev-C++ for C/C++ projects. Code::Blocks looks so yummy (the font).
    I didn't realise you could use it as a Hex editor untill you posted that.
    A handy feature, I can ditch my other hex editor(s) now.
    I will have to start hacking about with programs now to see what I can come up
    with , long time since I programmed in machine code!!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Extended ASCII Characters in an RTF Control
    By JustMax in forum C Programming
    Replies: 18
    Last Post: 04-03-2009, 08:20 PM
  2. Enforcing Machine Code Restrictions?
    By SMurf in forum Tech Board
    Replies: 21
    Last Post: 03-30-2009, 07:34 AM
  3. Obfuscated Code Contest
    By Stack Overflow in forum Contests Board
    Replies: 51
    Last Post: 01-21-2005, 04:17 PM
  4. Interface Question
    By smog890 in forum C Programming
    Replies: 11
    Last Post: 06-03-2002, 05:06 PM
  5. Replies: 0
    Last Post: 02-21-2002, 06:05 PM