From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: *** X-Spam-Status: No, score=3.8 required=5.0 tests=BAYES_00,INVALID_MSGID, LOTS_OF_MONEY,RATWARE_MS_HASH,RATWARE_OUTLOOK_NONAME autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,46d51fe6d8c2e15 X-Google-Attributes: gid103376,public From: "Nick Roberts" Subject: Re: type setting Ada code in MS Word Date: 1998/01/15 Message-ID: <01bd2200$4005aca0$95fc82c1@xhv46.dial.pipex.com>#1/1 X-Deja-AN: 316333187 Content-Transfer-Encoding: 7bit References: <01bd1fca$5c249c80$24326489@Westley-PC.calspan.com> Content-Type: text/plain; charset=ISO-8859-1 Organization: UUNet UK server (post doesn't reflect views of UUNet UK) Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 1998-01-15T00:00:00+00:00 List-Id: The simple trick I use to is to define a named style, with the requisite font (usu Courier New), paragraph spacing (usu 10), indentation, etc. I also set the language to 'none' to switch off spell checking. I also define a 'spacing' paragraph style, with a small font size, to go just before and after program code, to get nice spacing. I then simply set program code paragraphs to the above named style. Bold is easy to get: Ctrl+B to switch it on/off when typing; highlight text then Ctrl+B to do it retroactively. HTIU -- Nick Roberts Croydon, UK Proprietor, ThoughtWing Software; Independent Software Development Consultant * Nick.Roberts@dial.pipex.com * Voicemail & Fax +44 181-405 1124 * *** Eats three shredded spams every morning for breakfast *** Terry J. Westley wrote in article <01bd1fca$5c249c80$24326489@Westley-PC.calspan.com>... > You've probably noticed the common use of Courier font > for Ada code embedded in written documents. In addition, > Ada keywords are often bold-faced. > > Does anyone know of an MS Word macro (or VB program) that > will do this? Sort of like vgrind in TeX. > > -- > Terry J. Westley, Principal Engineer > Calspan SRL Corp, P.O. Box 400, Buffalo, NY 14225 > westley@calspan.com http://www.calspansrl.com/ >