
Build Your Own Programming Language
By :

Programmers need all the help they can get with reading, understanding, and debugging their programs. In Figure 10.1, the source code is presented in many different colors to enhance the readability of the code. This coloring is based on the lexical categories of different elements of the text. Although some people consider colored text as mere eye candy and others are not able to see colors at all, most programmers value it. Many forms of typos and text-editing bugs are spotted more quickly when a given piece of the source code is a different color than the programmer expected. For this reason, almost all modern programmer's editors and IDEs include this feature.
EditableTextList
is a Unicon GUI component that displays the visible portion of a list of strings using a single font and color selection. EditableTextList
does not allow the setting of a font or foreground and...