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, 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: "Terry J. Westley" Subject: Re: type setting Ada code in MS Word Date: 1998/01/16 Message-ID: <01bd2287$89b34b00$24326489@Westley-PC.calspan.com>#1/1 X-Deja-AN: 317649969 Content-Transfer-Encoding: 7bit References: <01bd1fca$5c249c80$24326489@Westley-PC.calspan.com> <01bd2200$4005aca0$95fc82c1@xhv46.dial.pipex.com> Content-Type: text/plain; charset=ISO-8859-1 Organization: Calspan SRL Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 1998-01-16T00:00:00+00:00 List-Id: Nick Roberts wrote in article <01bd2200$4005aca0$95fc82c1@xhv46.dial.pipex.com>... > 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. Agreed. This is the easy part. > Bold is easy to get: Ctrl+B to switch it on/off when typing; highlight text > then Ctrl+B to do it retroactively. This is the hard part. I don't have the patience (or accuracy) to select several hundred keywords in a hundred lines of code and press Ctrl+B for each one. That's what I'd like a macro or VB script to do for me. -- Terry J. Westley, Principal Engineer Calspan SRL Corp, P.O. Box 400, Buffalo, NY 14225 westley@calspan.com http://www.calspan.com/