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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,de0abe9655235740 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-11-10 02:41:44 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!eusc.inter.net!cs.tu-berlin.de!uni-duisburg.de!not-for-mail From: Georg Bauhaus Newsgroups: comp.lang.ada Subject: Re: ACM Ada Letters Date: Mon, 10 Nov 2003 10:41:44 +0000 (UTC) Organization: GMUGHDU Message-ID: References: <1065708924.347689@master.nyc.kbcfp.com> <8pWdnd8im8ToEzeiRVn-iw@gbronline.com> <3FAB95B6.9070008@noplace.com> <3FACE44D.2050500@noplace.com> <3FAE359C.4080705@noplace.com> NNTP-Posting-Host: l1-hrz.uni-duisburg.de X-Trace: a1-hrz.uni-duisburg.de 1068460904 20110 134.91.1.34 (10 Nov 2003 10:41:44 GMT) X-Complaints-To: usenet@news.uni-duisburg.de NNTP-Posting-Date: Mon, 10 Nov 2003 10:41:44 +0000 (UTC) User-Agent: tin/1.5.8-20010221 ("Blue Water") (UNIX) (HP-UX/B.11.00 (9000/800)) Xref: archiver1.google.com comp.lang.ada:2289 Date: 2003-11-10T10:41:44+00:00 List-Id: Marin David Condic wrote: : Sure, I could always get some form of formatting for publication. Either : A) I laboriously translate my Ada code via a word processor and tab : stops and whatever else I may need or (A) shouldn't have to be done when there is a parser for Ada :-) Indeed with GNAT you can use -gnatt, to some extent, this could be a starting point. : B) I laboriously write a program : to reformat it into Postscript or something else that can be sucked up : by some publishing tool while preserving my monospace alignment. (Still : doesn't solve the problem of possibly wanting to make things align : within identifiers, but perhaps that is not really necessary.) No, no, no, the alignment can be done (not overriden) by the formatting program, either by respecting the space character count, or by using an alignment algorithm using whatever fonts you have chosen! You type plain characters. The PP program is Ada-aware, and configurable. The PP program makes sure that there is alignment, if and how you want it. No tabbing needed, no changes or additions to source code, leave that to the computer :-) So there is no need for: : The question is "How do I get that within my Ada code such that its : still a compilable thing and is represented consistently by various : IDEs?" I thought the idea was to have proportional fonts as part of the : programming ritual and the objection was that monospace fonts make it : easy to format code. If its handled all through the editor via some : algorithm, it probably won't look the same across editors. Imagine you want to rename on identifier, possibly changing its length in characters. With just "space character formatting" you get into the usual typewriter-style trouble. With a computer program to assist you if you want, in whatever stage, you don't have to think about formatting when you write or change code. Reminds me of the widespread use of spaces, tabs, and pressing RETURN in place of using paragraph styles, automatic indenation, automatic or forced page breaking, automatic keep-together features, etc. that typesetting software and word processors have had for some time know... Georg