Menu

Things I miss in N++

2007-01-01
2012-11-13
  • Nobody/Anonymous

    I have been looking for a good text editor for quite a while now. I used UE for a time, but it wasn't free and it had too many functions I never used. Why pay for things I won't use? I have since been looking for that perfect text editor and have tried out quite a few along the way.

    At the moment I use Notepad++ and Crimson Editor, but I have to say that as a webdesigner I feel more comfortable around Crimson Editor at the moment. This only has to do with a few things though, and implementing them would make me switch to N++ and never look back.

    1. Crimson Editor has a wonderful way of linewrapping, making the code much easier to read. Wrapped lines are indented by a tab, relative to where the line originally started. Example:

    Lorem ipsum dolor sit amet, consectetaur adipisicing elit,
        sed do eiusmod tempor incididunt ut labore et dolore
        magna aliqua. Ut enim ad minim veniam, quis nostrud
        exercitation ullamco.

    Laboris nisi ut aliquip ex ea commodo consequat. Duis aute
        irure dolor in reprehenderit in voluptate.

            Velit esse cillum dolore eu fugiat nulla pariatur
                excepteur sint occaecat cupidatat non proident,
                sunt in culpa qui officia deserunt mollit anim id
                est laborum Et harumd und lookum like Greek to
                me, dereud facilis est er expedit distinct.

    The first and second paragraphs represent a normal linewrap. The wrapped text is indented, making it easy to tell wrapped text apart from linefeeds. The third paragraph shows what happens if an already indented line wraps. The wrapped text follows the indentation and makes code editing much more easy.

    Naturally, the indentation of the wrap should be controllable in the same way that tabs are. Likewise, the feature should be possible to turn off for people who aren't comfortable with it.

    2. When I select text and press TAB the selected text isn't replaced by a tab, a tab is just added to the front of the line. This makes replacing bad indentations harder and is generally annoying.

    Those are the only two reasons for why I still use Crimson Editor.

     
    • Nobody/Anonymous

      One thing I miss from N++ is that highlighted/coloured text as can be seen when you select N++ to interpret whatever language from the list, cannot be copied as rich text, then exported (i.e.) to OpenOffice.
      I find really helpful syntax highlighting but it would be great if there was an option to copy (or save as) selected contents as rich text. When I have to prepare a document with some shortcuts of code I miss this feature.

       
    • Nobody/Anonymous

      Well, looks like my nifty tabs were replaced. I'll post the example text again, using spaces instead. Hopefully it will work.

      Lorem ipsum dolor sit amet, consectetaur adipisicing elit,
          sed do eiusmod tempor incididunt ut labore et dolore
          magna aliqua. Ut enim ad minim veniam, quis nostrud
          exercitation ullamco.

      Laboris nisi ut aliquip ex ea commodo consequat. Duis aute
          irure dolor in reprehenderit in voluptate.

                  Velit esse cillum dolore eu fugiat nulla pariatur
                      excepteur sint occaecat cupidatat non proident,
                      sunt in culpa qui officia deserunt mollit anim id
                      est laborum Et harumd und lookum like Greek to
                      me, dereud facilis est er expedit distinct.

       
      • Nobody/Anonymous

        Ok, it didn't. Just download the program and see for yourself.
        http://www.crimsoneditor.com/

         
    • pshute

      pshute - 2007-01-02

      Wrapping is often ugly.  What you suggest might be helpful. Having said that, I try to avoid wrapping when it's annoying me.  I use smaller fonts, and when that doesn't help I use a cloned view with synchronised vertical scrolling so I can see the start and end of the lines in question without having to see the middle.

      I agree about the tabs.  You'd think that unless the whole line is selected it would just replace the text as you suggest.  However, I think I've never replaced so text with a tab in my whole life, only inserted them.  Do you do this often?

       
    • Thai Thanh Phong

      "2. When I select text and press TAB the selected text isn't replaced by a tab, a tab is just added to the front of the line. This makes replacing bad indentations harder and is generally annoying. "

      Fortunately, this *is* my desired behavior! I hate other editors just because they delete the selected text!!! =))

       
    • Nobody/Anonymous

      "2. When I select text and press TAB the selected text isn't replaced by a tab, a tab is just added to the front of the line. This makes replacing bad indentations harder and is generally annoying."

      For those of us that are developers, this is a highlight of the program. If you want to fix indentation on a block of text, select it and use TAB (or SHIFT+TAB) to align everything up correctly. Unless I misunderstand your issue, this is one feature that should never go away.

       
      • Nobody/Anonymous

        I currenly work with converting websites from one CMS to another. The indentation of the CSS often vary between different number of spaces and/or tabs within the same document and I therefore need to clean them up line by line. I have never used the tab function to indent chunks of text, but I do see how it can be handy in some cases. Maybe the function of the tab button could be an option in the preferences? That way we both get what we want.

         
    • Nobody/Anonymous

      Indentation is to me one of the most annoying aspects of programming. A feature I would really like to see in N++ (if it's not already there and I haven't found it of course) is automatic indentation, as in Apple's Xcode for example. So the program should understand when you're typing a new subroutine or loop or whatever an indent what's between the brackets accordingly. A feature to clean up and reindent existing code would also be nice.