home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / next / programm / 5208 < prev    next >
Encoding:
Text File  |  1992-07-23  |  1.1 KB  |  29 lines

  1. Newsgroups: comp.sys.next.programmer
  2. Path: sparky!uunet!trirex!root
  3. From: mmelling @Trirex.com(Michael Mellinger)
  4. Subject: Re: Edit for programs and enscripting them
  5. Message-ID: <1992Jul23.224217.300@Trirex.COM>
  6. Sender: root@Trirex.COM (Operator)
  7. Organization: Trirex Systems Inc.
  8. References: <8JUL199223052305@mpx2.lampf.lanl.gov>
  9. Date: Thu, 23 Jul 1992 22:42:17 GMT
  10. Lines: 17
  11.  
  12. In article <8JUL199223052305@mpx2.lampf.lanl.gov>  
  13. silbar@mpx2.lampf.lanl.gov (Dick Silbar) writes:
  14. > This must be a solved problem.  I have been writing my ObjC programs
  15. > with the Edit app, with the TabWidth set to 2.  For outputting these
  16. > to the printer, I'd like to use the Enscript submenu item in the
  17. > UserCommands (or whatever it is that is specified by the .commanddict
  18. > file) menu item.  That invokes enscript with the "-2r" option, which
  19. > is nice for saving trees.  What isn't nice is that the enscript tab
  20. > width seems to be 8, which means my nicely indented things then don't
  21. > look so nice, anymore.
  22.  
  23. Use the Unix "expand" command, and pipe the result to enscript.
  24. For example,
  25.  
  26.   expand -2 foo.m | enscript -2r -Pmy_favorite_printer
  27.  
  28. -Mike
  29.