home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lang / pascal / 6692 < prev    next >
Encoding:
Internet Message Format  |  1992-11-18  |  2.3 KB

  1. 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
  2. From: exuhag@exu.ericsson.se (James Hague)
  3. Newsgroups: comp.lang.pascal
  4. Subject: Re: Comments on Turbo (Borland) Pascal 7.0?
  5. Message-ID: <1992Nov18.174335.2758@exu.ericsson.se>
  6. Date: 18 Nov 92 17:43:35 GMT
  7. References: <1992Nov18.131557.7438@odin.diku.dk>
  8. Sender: news@exu.ericsson.se
  9. Reply-To: exuhag@exu.ericsson.se
  10. Organization: Ericsson Network Systems, Richardson, TX
  11. Lines: 32
  12. Nntp-Posting-Host: s09a05.exu.ericsson.se
  13. X-Disclaimer: This article was posted by a user at Ericsson.
  14.               Any opinions expressed are strictly those of the
  15.               user and not necessarily those of Ericsson.
  16.  
  17. Niels Ull Jacobsen writes:
  18. >
  19. >1: Source code highlighting
  20. >You can set it up so that all keywords are white,
  21. >all user identifiers are green, all constants are black, all comments 
  22. >are grey and some syntactic errors are red. Of course you can change
  23. >the colour set up. It may sound trivial and confusing, but I find it 
  24. >VERY useful - you catch a lot of typing errors as you type.
  25.  
  26. I have seen this feature in Borland C++ 3.1 and it has me wondering.
  27. I think that having comments and code in different colors is a great
  28. idea.  But I can't figure out why anyone in their right mind would
  29. want to have constants, keywords, and identifiers in different colors.
  30. People made a big ruckus over Modula-2's forced "IF a = b THEN"
  31. syntax, because it draws attention to keywords (similar to emphasizing
  32. puncutation over sentence content, in many people's opinion).
  33.  
  34. And on a vaguely related subject, here's a neat idea:  since the
  35. editor already has to go through the trouble of doing lexical
  36. scanning (to determing proper colors), maybe it should be taken
  37. one step further.  Keep the files, both internally and on disk,
  38. in a tokenized format.  This would allow better memory usage (smaller
  39. files) and would speed up the compiler.  Many assemblers and a 
  40. few compilers on 8-bit computers used to use such a scheme.
  41.  
  42. Of course, there would still be an option to save untokenized
  43. files and Borland could provide a filter to convert tokenized
  44. files to straight text files.
  45.  
  46. --
  47. James Hague   
  48. exuhag@exu.ericsson.se
  49.