Menu

how to in notepad ++

2008-12-28
2012-11-13
  • frank terlien

    frank terlien - 2008-12-28

    I'm new to Notepad ++

    I have a rather large text. On several places in that file there are parts between () as comment.

    I want to remove everything between these (to be removed) .

    Can I write a macro to perform this?

    Thanks in advance

     
    • Gadrin

      Gadrin - 2008-12-29

      Here's a nice set of utilities: http://unxutils.sourceforge.net/

      The SED utility can do Search and Replace in files via a command line. Make sure you backup your
      data first during testing.

      >

       
    • Gadrin

      Gadrin - 2008-12-29

      I don't think Notepad++ will let you do Search & Replace in macros.

      There might be another way to do it.

      >

       
    • Gadrin

      Gadrin - 2008-12-29

      I've done large editing jobs using VBScript, such as finding all <a href="xxxxxxxxxxxxx">Whatever</a> tags and removing them.

      Your (something) is very similar.

      I was able to pass a filename to the VBScript file and have it edit it (for about 200 to 500 files) in around 30 seconds.

      There's also shareware that can do this. Try Googling for "Search and Replace in files".

      >