Author Topic: Preprocessor  (Read 6705 times)

b0rj

  • New Community Member
  • Posts: 1
  • Hero Points: 0
Preprocessor
« on: October 29, 2007, 03:14:18 AM »
Hi,

I would like to open all the files in a project, parse it, search for a string, and generate an output.
I'm completely new to slickEdit programming. Sorry for the grammar.

Example
#define STRINGTOBESEARCH 1
#define VALUE 1
#define ERROR -1


if (STRINGTOBESEARCH == 1) {
    varA = VALUE
    varB = VALUE
}

else {
    varC = ERROR
    varD= ERROR
}

The output is something like this in a buffer or text file:
varA = 1
varB = 1
 
Thanks.

hs2

  • Senior Community Member
  • Posts: 2761
  • Hero Points: 292
Re: Preprocessor
« Reply #1 on: October 29, 2007, 09:37:49 AM »
Maybe using this http://community.slickedit.com/index.php?topic=2037.msg8528#msg8528
method could help and avoids the effort writing a macro. - HS2