home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!charon.amdahl.com!pacbell.com!sgiblab!darwin.sura.net!jvnc.net!yale.edu!qt.cs.utexas.edu!cs.utexas.edu!sun-barr!west.West.Sun.COM!cronkite.Central.Sun.COM!texsun!exucom.exu.ericsson.se!s09a05!exuhag
- From: exuhag@exu.ericsson.se (James Hague)
- Newsgroups: comp.lang.pascal
- Subject: Re: Comments on Turbo (Borland) Pascal 7.0?
- Message-ID: <1992Nov18.174335.2758@exu.ericsson.se>
- Date: 18 Nov 92 17:43:35 GMT
- References: <1992Nov18.131557.7438@odin.diku.dk>
- Sender: news@exu.ericsson.se
- Reply-To: exuhag@exu.ericsson.se
- Organization: Ericsson Network Systems, Richardson, TX
- Lines: 32
- Nntp-Posting-Host: s09a05.exu.ericsson.se
- X-Disclaimer: This article was posted by a user at Ericsson.
- Any opinions expressed are strictly those of the
- user and not necessarily those of Ericsson.
-
- Niels Ull Jacobsen writes:
- >
- >1: Source code highlighting
- >You can set it up so that all keywords are white,
- >all user identifiers are green, all constants are black, all comments
- >are grey and some syntactic errors are red. Of course you can change
- >the colour set up. It may sound trivial and confusing, but I find it
- >VERY useful - you catch a lot of typing errors as you type.
-
- I have seen this feature in Borland C++ 3.1 and it has me wondering.
- I think that having comments and code in different colors is a great
- idea. But I can't figure out why anyone in their right mind would
- want to have constants, keywords, and identifiers in different colors.
- People made a big ruckus over Modula-2's forced "IF a = b THEN"
- syntax, because it draws attention to keywords (similar to emphasizing
- puncutation over sentence content, in many people's opinion).
-
- And on a vaguely related subject, here's a neat idea: since the
- editor already has to go through the trouble of doing lexical
- scanning (to determing proper colors), maybe it should be taken
- one step further. Keep the files, both internally and on disk,
- in a tokenized format. This would allow better memory usage (smaller
- files) and would speed up the compiler. Many assemblers and a
- few compilers on 8-bit computers used to use such a scheme.
-
- Of course, there would still be an option to save untokenized
- files and Borland could provide a filter to convert tokenized
- files to straight text files.
-
- --
- James Hague
- exuhag@exu.ericsson.se
-