• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Multiline Search and Replace
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Multiline Search and Replace


  • Subject: Re: Multiline Search and Replace
  • From: Andy Lee <email@hidden>
  • Date: Fri, 22 Jul 2005 10:07:01 -0400

On Jul 22, 2005, at 9:50 AM, Tommy Nordgren wrote:
Can XCode or some third party tool, do a
Multiline search and replace?
I want to replace the following:
#ifdef _cplusplus
#define BEGIN_DECLS extern "C" {
#define END_DECLS }
#else

with this :
#ifdef _cpluplus
#ifdef COMPILE_AS_CPLUSPLUS
#define BEGIN_DECLS
#define END_DECLS
#else
#define BEGIN_DECLS extern "C" {
#define END_DECLS }
#endif
#else


Xcode can do it, or any app that uses standard search and replace.

Select the lines you want to search for and hit Command-E (or select "Use Selection For Find" in the Find menu). Much easier than trying to type it into the search field. Let Cocoa do the work.

Type the replacement string (which can be multi-line) in your text window and use copy-paste to put it into the "Replace:" field of the Find panel.

--Andy

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Multiline Search and Replace (From: Tommy Nordgren <email@hidden>)

  • Prev by Date: Looking for a syntax highlighting control
  • Next by Date: Interface Builder: Missing documentation and bug?
  • Previous by thread: Multiline Search and Replace
  • Next by thread: Looking for a syntax highlighting control
  • Index(es):
    • Date
    • Thread