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,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,8c6078fe7f7803ab,start X-Google-Attributes: gid103376,public From: Ehud Lamm Subject: coloring Date: 2000/02/09 Message-ID: #1/1 X-Deja-AN: 583713108 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Complaints-To: usenet@news.huji.ac.il X-Trace: news.huji.ac.il 950113287 18467 132.64.178.45 (9 Feb 2000 16:21:27 GMT) Organization: The Hebrew University of Jerusalem Mime-Version: 1.0 NNTP-Posting-Date: 9 Feb 2000 16:21:27 GMT Newsgroups: comp.lang.ada Date: 2000-02-09T16:21:27+00:00 List-Id: I just tried the TeX "listings" package, which pretty prints code. It supports Ada so things were smooth. What annoyed me was that 'class wasn't displayed in bold - since class isn't a reserved word. This is also the behviour of AdaGide. Since I didn't like this behaviour I tried adding "'class" to the list of reserved words, and it seems to work. So now code like this: package try_syntax is type Class is abstract tagged null record; procedure X(C:Class'Class); end; is displayed correctly. To my eyes this nicer. Perhaps this should also be the behaviour of AdaGide? Seeing clearly that a routine is class wide seems nice. This is the kind of advantages a pretty-printer/colorizer should have, it seems to me - I am not really interested when I edit the code to be merely reminded what is a reserved word and what isn't. Ehud Lamm mslamm@mscc.huji.ac.il http://purl.oclc.org/NET/ehudlamm <== My home on the web Check it out and subscribe to the E-List- for interesting essays and more!