Not sure if this will help you but MPLABX will also highlight the #if, #elif, #else and #endif directives that belongs together if you place the cursor over one of them. You can then also se locations of the=20 highlighted items marked in the right margin (to the right of the scroll ba= r)=20 so you can get a sense of where they are in the whole file, all at once. But it can not show you exactly where the #endif is missing. I guess you ha= ve=20 to compare with the original file to do that. WinMerge does a pretty good job at that. /Ruben > I'm messing with CustomSNMPApp.c and apparently messed it up somewhere > (missing #endif). So far, I've printed it out and marked the #ifdef, > #else, #endif blocks by hand as lines in the left margin. Since Microchip > nests these several deep, it's easy to mismatch them. >=20 > Is there a source file lister that will do something similar (pair these > up through nesting) so I can figure out where I went wrong? I see that > MPLABX and Notepad++ let you collapse blocks, but it's still pretty hard > to see where the problem is. >=20 > THANKS! >=20 > Harold >=20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D Ruben J=F6nsson AB Liros Electronic Box 9124, 200 39 Malm=F6, Sweden TEL INT +46 40142078 FAX INT +46 40947388 ruben@pp.sbbs.se =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D --=20 http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .