DMD now has colorized syntax highlighting in error messages

Jacob Carlborg via Digitalmars-d-announce digitalmars-d-announce at puremagic.com
Tue May 16 00:58:42 PDT 2017


On 2017-05-15 23:33, Adam D. Ruppe wrote:
> On Monday, 15 May 2017 at 15:40:58 UTC, Walter Bright wrote:
>> That's why such needs to be turned into a generic module, instead of
>> constantly being reinvented.
>
> What I'm saying is that it IS a generic module... in fact, there's
> several of them:
>
> http://code.dlang.org/search?q=color
>
> colorize, consoled, rainbow, and drlutil are all competing in this
> space. My terminal library (which is also included in the consoled dub
> package) is another.
>
> Now, I don't think you should use a library for this. Basic console
> color output is trivial and not worth the cost of a dependency
> (especially not a fat one like mine, which is full-featured console
> stuff when you just need simple color)... but I also don't think you
> should add yet another module to do it out there in public.

It could be added as a subpackage to the upcoming Dub file [1].

[1] https://github.com/dlang/dmd/pull/6771

-- 
/Jacob Carlborg


More information about the Digitalmars-d-announce mailing list