DMD now has colorized syntax highlighting in error messages

H. S. Teoh via Digitalmars-d-announce digitalmars-d-announce at puremagic.com
Tue May 16 08:13:37 PDT 2017


On Tue, May 16, 2017 at 08:11:21AM -0700, Walter Bright via Digitalmars-d-announce wrote:
> On 5/16/2017 7:17 AM, Adam D. Ruppe wrote:
> > So again it is NOT color that bothers me. It is OVERUSE of color for
> > stuff that isn't important to read the message which dilutes the
> > meaning of color. It isn't special anymore.
> 
> Perhaps. I know I have some trouble distinguishing code from
> explanatory text in error messages, particularly when the code looks
> like english, as in:
> 
>     error: undefined identifier maybe
> 
> Colorizing code distinguishes it from text.
[...]

Simpler solution: print the identifier in quotes, e.g.:

     error: undefined identifier 'maybe'

There: instantly clear without needing any colors.


T

-- 
LINUX = Lousy Interface for Nefarious Unix Xenophobes.


More information about the Digitalmars-d-announce mailing list