Thread: Lightweight text editor

  1. #1
    PhysicistTurnedProgrammer Cell's Avatar
    Join Date
    Jan 2009
    Location
    New Jersey
    Posts
    72

    Lightweight text editor

    Hey guys,

    At work and on my main PC I have become addicted to UltraEdit. The amount of features is absolutely awesome. However, I recently got a new laptop and my UE licenses do not extend to my laptop. I am looking for a similar text editor - one that is relatively lightweight, but with a large amount of features (especially column mode and a powerful 'find' tool!).

    Thanks!

  2. #2
    Woof, woof! zacs7's Avatar
    Join Date
    Mar 2007
    Location
    Australia
    Posts
    3,459
    Can't go wrong with vim, http://www.vim.org/about.php

    The learning curve is steep. But it's well worth it, especially if you find yourself SSH'ing into machines without X. vim is on most Linux boxes, or at least vi is.

    Also this is probably in the wrong section.

  3. #3
    Registered User
    Join Date
    Jan 2008
    Posts
    290
    http://notepad-plus.sourceforge.net

    I've been using Notepad++ ever since one of my friends got me to switch from PSPad. I don't think its quite as nice as UltraEdit, but considering its free, its pretty damn good!

    It does have column-mode support, although it's not as powerful and easy to use as UltraEdit's. Just hold ALT, and then click and drag to make column selections. Then ALT-C (also in the menu: Edit -> Column Editor) opens up a dialog to add text to columns you have selected (replacing any text that's already there).

    As far as a "powerful find tool" goes, it supports regular expression searches and replacements. That's more power than I've ever needed.

    I've tried a wide variety of text editors, and I have yet to see one that I would call 'perfect' for my needs. There's always a list of features that I wish could be tweaked a certain way, or I'll find a feature from another text editor and wish that they all had that feature. But Notepad++ is probably the best fit for me out of all the free choices. (The Eclipse Java editor gets an honorable mention though, it does some snazzy things)

  4. #4
    Registered User NeonBlack's Avatar
    Join Date
    Nov 2007
    Posts
    431
    I have been using notepad++ for about 4 years. Though right now, I am using an old version because the auto-indent on the new versions is really p****** me off.

    What would be really awesome would be the Visual Studio editor as a standalone text editor.
    I copied it from the last program in which I passed a parameter, which would have been pre-1989 I guess. - esbo

  5. #5
    Registered User
    Join Date
    Feb 2009
    Posts
    8

  6. #6
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Moved to Tech Board.

    What do you define as "lightweight"?
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  7. #7
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,895
    jEdit is not lightweight (it takes pretty long to start) but damn, it's powerful. And free.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  8. #8
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    You can't get much more lightweight than this
    Code:
    > copy con: prog.c
    int main ( ) {
        return 0;
    }
    ^Z
            1 file(s) copied.
    
    > type prog.c
    int main ( ) {
        return 0;
    }
    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.

  9. #9
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Quote Originally Posted by Salem View Post
    You can't get much more lightweight than this
    Code:
    > copy con: prog.c
    int main ( ) {
        return 0;
    }
    ^Z
            1 file(s) copied.
    
    > type prog.c
    int main ( ) {
        return 0;
    }
    The features might be slightly lacking for editing files more than a few lines long, tho'

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  10. #10
    Ugly C Lover audinue's Avatar
    Join Date
    Jun 2008
    Location
    Indonesia
    Posts
    489
    Notepad++ is quiet good. Somehow it's slower than Notepad itself. I hate slow C++ softwares.

    However, I'm always use the portable and lightest-weight Notepad instead of any other text editors.

    Tough you'll type faster and easier by using complex text-editor, it's still depend on how do you type, your typing skill.
    Just GET it OFF out my mind!!

  11. #11
    Devil's Advocate SlyMaelstrom's Avatar
    Join Date
    May 2004
    Location
    Out of scope
    Posts
    4,079
    Quote Originally Posted by audinue View Post
    Notepad++ is quiet good. Somehow it's slower than Notepad itself. I hate slow C++ softwares.
    It's significantly more feature filled than Notepad. ... and besides, what language do you assume Notepad is written in?
    Sent from my iPadŽ

  12. #12
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,895
    C :-)

    Not that Notepad has much code. The original Notepad was a very thin wrapper around the edit control, nothing more. Recent versions have a tiny bit more features.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  13. #13
    Ugly C Lover audinue's Avatar
    Join Date
    Jun 2008
    Location
    Indonesia
    Posts
    489
    Quote Originally Posted by http://notepad-plus.sourceforge.net/uk/site.htm
    Based on a powerful editing component Scintilla, Notepad++ is written in C++1 and uses pure Win32 API and STL2 which ensures a higher execution speed3 and smaller program size4. By optimizing as many routines as possible without losing user friendlyness, Notepad++ is trying to reduce the world carbon dioxide emissions. When using less CPU power, the PC can throttle down and reduce power consumption, resulting in a greener environment.5
    *1 Answers:
    Quote Originally Posted by SlyMaelstrom
    It's significantly more feature filled than Notepad. ... and besides, what language do you assume Notepad is written in?
    *2 cause.
    *3 and 4: Don't you think this statement is irrational?
    *5 Amen. LOL. Just in theory.
    Last edited by audinue; 02-06-2009 at 03:49 PM.
    Just GET it OFF out my mind!!

  14. #14
    Devil's Advocate SlyMaelstrom's Avatar
    Join Date
    May 2004
    Location
    Out of scope
    Posts
    4,079
    Quote Originally Posted by audinue View Post
    *1 Answers:

    *2 cause.
    *3 and 4: Don't you think this statement is irrational?
    *5 Amen. LOL. Just in theory.
    What is this? Everything you just quoted only backs up what I said about Notepad++.

    Thanks for doing my research for me... however, I think CornedBee did the answering to my question, even though I beg to differ. I'd have to look it up, but I'd bet that since Windows NT, Notepad has been written in C++ like most of the rest of Windows Explorer and the rest of Windows GUI applications.

    Which really only begs the question: How come Windows developers refuse (cause I know some are capable) to make a free notepad as efficient and powerful as Notepad++?

    By the way, did anyone see the new Windows 7 Wordpad and Calculator? I must admit, I think they're pretty good. Wordpad now offers enough features for most highschool and college student essays and the new modes in Calculator are pretty good, albeit, some gripe-worthy features missing in the Programmer mode.

    EDIT: And one more thing... I might just have to whip out CPU-Z when I get home and see what Intel Speed-Step does on my C2D as far as throttling down the CPU frequency between running Notepad and Notepad++. I've seen some stretches, in my day, but that one is a bit too much.
    Last edited by SlyMaelstrom; 02-06-2009 at 04:20 PM.
    Sent from my iPadŽ

  15. #15
    Registered User
    Join Date
    Dec 2006
    Location
    Canada
    Posts
    3,229
    Which really only begs the question: How come Windows developers refuse (cause I know some are capable) to make a free notepad as efficient and powerful as Notepad++?
    They are busy implementing the biggest and baddest next gen piracy protection scheme, and deciding what features to exclude from the 6 or something versions of Windows 7.

    Seriously, though... if they continue doing that they won't need to worry about the piracy problem anymore soon.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. creating very simple text editor using c
    By if13121 in forum C Programming
    Replies: 9
    Last Post: 10-19-2010, 05:26 PM
  2. text editor
    By akki in forum C Programming
    Replies: 5
    Last Post: 07-11-2009, 02:05 PM
  3. C++ For Text Editor?
    By bmroyer in forum C++ Programming
    Replies: 12
    Last Post: 04-05-2005, 02:17 AM
  4. struct question
    By caduardo21 in forum Windows Programming
    Replies: 5
    Last Post: 01-31-2005, 04:49 PM
  5. help about text editor
    By nag in forum C++ Programming
    Replies: 2
    Last Post: 04-24-2003, 11:45 AM