On 3/22/2008 7:29:45 PM, Ian Binnie wrote:
>8 bit colour normally uses a palette to
>display colours, usually the system
>palette, and in fact less than 256
>colours, as 16 are "reserved".
But the colors can be chosen from the selection of 16 million colors.
>Vedit in fact only uses the 16 colours,
>the 256 choices are a combination of 16
>foreground and 16 background.
>16 bit colour uses 5,6,5 bits to
>represent the RGB pixel, and can thus
>use 64k colours, although I suspect
>Vedit will be actually using 256
>foreground and 256 background.
>I don't see the need for Vedit to
>display more colours (although I would
>welcome more choices in syntax
>highlighting), but this would allow the
>user to pick their own colours rather
>than the current restricted set.
256 colors (8 bits) is definitely enough for Vedit. Vedit currently only uses 12 colors: 4 editing colors plus 8 syntax colors. Even if more syntax colors would be added, it still leaves some 240 colors for the user.
Having user colors would be a nice enhancement. This would make it possible to use colors in macro output windows. (Of course we would need macro commands for that.) In addition, highlight for searched words would be nice, and perhaps multiple different searches (patterns) displayed simultaneously with different colors (as in some HEX editors).
However, if the color system is changed, I would prefer the option to choose the colors from palette of 16 million instead of fixed palette of 256 colors.
For example, when selecting color for "comments", you could use color picker to select any 8+8+8 bit RGB color for it. This could be implemented internally such way that one index in the 8-bit color palette table would be reserved for "comment" color.
Another (more complex) option would be to pick the color from the palette of 256, and with a separate configuration function, choose the actual RGB color for that palette index.
In any case, there should be option to select "transparent" color for any syntax or editing color so that syntax highlight would work correctly with different window background colors.
P.S. Maybe this discussion should be on different thread since this is not related to Unicode anymore.