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=-1.3 required=5.0 tests=BAYES_00,FREEMAIL_FROM, INVALID_MSGID 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: tconiam@aol.com (TConiam) Subject: Re: type setting Ada code in MS Word Date: 1998/01/15 Message-ID: <19980115232000.SAA18083@ladder03.news.aol.com>#1/1 X-Deja-AN: 316358990 References: <01bd1fca$5c249c80$24326489@Westley-PC.calspan.com> X-Admin: news@aol.com Organization: AOL http://www.aol.com Newsgroups: comp.lang.ada Date: 1998-01-15T00:00:00+00:00 List-Id: >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. I just set up a paragraph style called "code" that uses courier new, etc. Then I apply it to the code text in the document. Works reasonbly well. Of course if your looking to bold-face keywords you could write a macro or VBA module to do a search and replace based on style and affecting only text with the "code" style. In that case I would suggest also creating character styles for keywords, comments, etc. that only affect the font and style (bold, italic, etc.) I may just try this myself...hmm ------------------------------------------------------------------------- Todd Coniam tconiam@aol.com Ada 95 - The international standard in OO languages ------------------------------------------------------------------------- Check: http://lglwww.epfl.ch/Ada/ Free compiler: http://www.gnat.com/