home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.c++.moderated      Moderated discussion of C++ superhackery      33,346 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 31,852 of 33,346   
   James K. Lowden to Martin B.   
   Re: Editor with regexp highlighting? (wa   
   26 Jan 12 11:49:13   
   
   From: jklowden@speakeasy.net   
      
   On Wed, 25 Jan 2012 15:00:49 -0800 (PST)   
   "Martin B." <0xCDCDCDCD@gmx.at> wrote:   
      
   > Btw.: Is there a code/text editor that can do regexp Search&Replace   
   > *and* has the ability to do instant highlighting of all regexp   
   > matches in the current source file?   
      
   Nedit kinda sorta does that.  It has regex find/replace one at a time   
   or globally.  It can also filter a selected block.  To find all   
   affected rows before applying the change, ^A to select all, alt-R to   
   grep for the regex (displays only found lines), ^Z to revert (ungrep).   
      
   That works unless you're deep enough into regex territory that the   
   nedit version and your local grep disagree on the regex syntax!   
      
   Alternative: apply the regex & save, then diff the file and its .bck.   
   Undo can back out changes prior to the last save (can cross savepoints,   
   if you will).   
      
   To run nedit in Windows you need cygwin or similar.  That wouldn't be my   
   first choice there.  On Windows I buckle up and keep a tall glass   
   filled with good, cold Microsoft Kool-aid.   
      
   --jkl   
      
      
   --   
         [ See http://www.gotw.ca/resources/clcm.htm for info about ]   
         [ comp.lang.c++.moderated.    First time posters: Do this! ]   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca