Finding methods and inserting code programmatically

Forgive me if this has already been answered, I have search the example openapi code, and searched this forum and the web in general and have not found an answer.

I want to loop thru my code, finding method signatures that match a given string and insert code directly after them and directly before the ending brace.

an extension of this is the ability to find arbitrary code and wrap that text with other text.

Any help, example code or pointing into the right direction would be greatly appreciated.

2 comments
Comment actions Permalink

anyone have any idea about this?

0
Comment actions Permalink

jarrod roberson wrote:

anyone have any idea about this?


Have you experiemented with macros?


0

Please sign in to leave a comment.