ch-ch-update: series, closed-form series, and strides
Frits van Bommel
fvbommel at REMwOVExCAPSs.nl
Sat Jan 31 18:27:11 PST 2009
Michel Fortin wrote:
> On 2009-01-31 19:26:08 -0500, Andrei Alexandrescu
> <SeeWebsiteForEmail at erdani.org> said:
>
>> So I think in the future it's a good bet for both programmers and
>> editors to consider q{} quotes as containing code.
>
> Hum, but since it's a string, shouldn't text editors highlight it as if
> it was a string? I was going to do that in D for Xcode at some point...
> perhaps I shouldn't.
I think it might be a nice idea to syntax-highlight those like regular
code, but with a different background color. For instance white
background for regular code, light yellow for q{}, and successively
darker shades for nested q{q{q{}}} (up to some limit).
You'd have to make sure it stays readable though, so the background
color should be a color that has sufficient contrast with foreground
colors used for the code (e.g. don't pick the color used for regular
strings(!) or keywords).
Just a thought...
More information about the Digitalmars-d
mailing list