>The code for Beautifying in the Documenting wizard is in XSource.Zip, look for WXFormat.* and WZFoxDoc.*, though its not the exact code for the Beautiy.app, AFAICT.
Better brush up on your C coding, because the code that does the actual formatting is in C, IIRC. As a sidenote, the compiler will cough up a hairball because it can't find a resource file (version.rc, I believe). However, you can remove the dependency (you don't need it), and it should compile just fine.
Mike Stewart