This seems to work well for the basic grey and the two "shades of X" color schemes. For the other color schemes, I've just left things as they are, but if someone wants to figure out better colors that achieve similar effects, that'd be welcome.<div>
<br></div><div>(The tricky thing is that you have to figure out what color to draw for color N such that all of the previous colors drawn and then combined with color N will yield the color that you really want.)<br><br>Robby<br>
<br>On Thursday, November 29, 2012, Robby Findler wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I think that makes sense. Indeed, I could arrange for the highlights<br>
to be drawn first (before the text) and use non-1 alphas to achieve<br>
this affect when highlights are layered. Let me think more about this<br>
and I'll give it a try at some point.<br>
<br>
Robby<br>
<br>
On Thu, Nov 29, 2012 at 10:04 AM, Grant Rettke <<a href="javascript:;" onclick="_e(event, 'cvml', 'grettke@acm.org')">grettke@acm.org</a>> wrote:<br>
> On Thu, Nov 29, 2012 at 7:59 AM, Robby Findler<br>
> <<a href="javascript:;" onclick="_e(event, 'cvml', 'robby@eecs.northwestern.edu')">robby@eecs.northwestern.edu</a>> wrote:<br>
>> The way those highlights work, you are going to see either one or the<br>
>> other and I think it gets more confusing when the paren highlights<br>
>> obscure the error highlights (indeed, we have had PRs in the past<br>
>> claiming that the error highlighting was broken when the priorities<br>
>> were reversed).<br>
>><br>
>> Unless you have an idea on how to show both?<br>
><br>
> What I was thinking was doing something like this:<br>
> 1. Say there is a section that is highlighted like this (foo (bar<br>
> (baz))) ;; (this is not complicated but imagine that it is)<br>
> 2. The highlighter is highlighting the whole in ERR_COLOR.<br>
> 3. And you need to fix something and you need to put the cursor in the<br>
> right place. Of course I can't reproduce the situation that made me<br>
> think of this hence the simple example. Anyway you want paren<br>
> highlighting.<br>
> 4. There is a some color already defined for highlighting matching<br>
> parens MP_COLOR. Error highlighting won't use this.<br>
> 5. Instead it would make MP_ERR_COLOR which is ERR_COLOR but take down<br>
> the value (the V in HSV I looked it up) so that it is still clearly an<br>
> error, but there is some visual distinction.<br>
><br>
> Maybe this is an edge case? I can't even create a situation where this<br>
> makes sense.<br>
><br>
> But anyway the idea is that it is clearly an error, but there is a<br>
> subtle difference to see paren background highlighting.<br>
><br>
> Just an idea. I would code it up but it would take me a week. That<br>
> said I would be happy to try.<br>
</blockquote></div>