home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / os / msdos / programm / 9221 < prev    next >
Encoding:
Text File  |  1992-09-09  |  2.3 KB  |  71 lines

  1. Path: sparky!uunet!utoday!jaflrn!jaf
  2. From: Jon Freivald <jaf@jaflrn.UUCP>
  3. Newsgroups: comp.os.msdos.programmer
  4. Subject: Re: Recommendation on editor for C / Brief only $99 now
  5. Message-ID: <qw9uqB1w164w@jaflrn.UUCP>
  6. Date: Wed, 09 Sep 92 23:30:01 EDT
  7. References: <Bu4BEy.91@world.std.com>
  8. Organization: The Wizzard's Cave, East Meadow, NY
  9. Lines: 60
  10.  
  11. levin@world.std.com (Levin F Magruder) writes:
  12.  
  13. > Brief is on sale from Borland now.  I'd still rather not spend
  14. > the $99, but if it's as good as its reputed to be, I guess
  15. > I'd take the plunge.  
  16. > My main criteria is that it can automatically handle braces, etc.
  17. > (You'd think that would be simple enough, but I've never been
  18. > pleased with the way any editor does it...) and have a quick to
  19. > learn and flexible macro language.  And work under Desqview.
  20. > Those of you who use brief, does it meet these criteria?  Other
  21. > suggestions are welcome, bearing in mind that I begrudge even
  22. > $99 expense.  I am not a professional programmer, I write little
  23. > filters and things like that.
  24.  
  25. It meets all of the above, is exceeding powerful and wonderfully
  26. flexible.  I've used it for ~4 years & wouldn't think of programming
  27. with any other editor if given the choice...
  28.  
  29. > An example of how I write follows.  I think it's pretty standard
  30. > and auto formatting should be able to indulge my preferences...
  31.  
  32. [code deleted...]
  33.  
  34. Almost, here's your sample code entered with Brief's "smart indenting":
  35.  
  36. int proc(char *arg)
  37. {
  38.         char localc ;
  39.     char *cp ;
  40.  
  41.     while(*cp !=arg)
  42.         {
  43.         dothis(*cp) ;
  44.         getanother(cp) ;
  45.         eflag = estat (*cp) ;
  46.         }
  47.  
  48.     return(something) ;
  49. }
  50.  
  51. This has always done me quite well, so I've left it as-is.  If you don't
  52. like it, it's also customizable by editing and recompiling a macro file.
  53.  
  54. > I would like to be able to make it autoexpand ); to ) ; and
  55. > }\n to }\n\n if the first non-white char after } \n is not }.
  56.  
  57. Brief supports regular expression translates (search/replace) that can
  58. be quite complex.
  59.  
  60. Hope this helps you make up your mind.  If you have further questions,
  61. I'll be happy to answer them e-mail.
  62.  
  63. Jon
  64.  
  65. =============================================================================
  66.            Jon Freivald ( jaflrn!jaf@uunet.UU.NET )
  67.      Nothing is impossible for the man who doesn't have to do it.
  68. =============================================================================
  69.