Hi there.
I have a number of files open, containing commented out #define's.
I also have a list of defines in another file, and for each line in this file,
I want to search through all the open files, finding the commented out #defines that match those in my list.
So I'm trying to loop through my macro to do this, and the RegExp I'm using seems to work fine for the first line of the file but I can't get it to continue round the loop, and onto the next line.
Any ideas?
Top
Loop 0
StartSelect
Key DOWN ARROW
Copy
Paste
Paste
EndSelect
Key UP ARROW
"%//MY_COMMENT ^([ ]++#[ ]++define[ ]++"
Key END
"[~A-Z0-9_]^)"
StartSelect
Key HOME
Cut
StartSelect
Key DOWN ARROW
EndSelect
Key DEL
Find RegExp "^c"
Replace All AllFiles "^1"
EndLoop
I have a number of files open, containing commented out #define's.
I also have a list of defines in another file, and for each line in this file,
I want to search through all the open files, finding the commented out #defines that match those in my list.
So I'm trying to loop through my macro to do this, and the RegExp I'm using seems to work fine for the first line of the file but I can't get it to continue round the loop, and onto the next line.
Any ideas?
Top
Loop 0
StartSelect
Key DOWN ARROW
Copy
Paste
Paste
EndSelect
Key UP ARROW
"%//MY_COMMENT ^([ ]++#[ ]++define[ ]++"
Key END
"[~A-Z0-9_]^)"
StartSelect
Key HOME
Cut
StartSelect
Key DOWN ARROW
EndSelect
Key DEL
Find RegExp "^c"
Replace All AllFiles "^1"
EndLoop