Quoting Randy Kramer <[EMAIL PROTECTED]>:

> On Monday 07 April 2008 12:34 am, Tony Balinski wrote:
> > Quoting Randy Kramer <[EMAIL PROTECTED]>:
> > > /* The format of the class string s is:
> > >           low[-high]{,low[-high]}:color{;low-high{,low[-high]}:color}
...
> > That's for determining the backloghting color. The values are the
> > character values themselves. If you have an "a" (ASICII 65), you look
> > up the color in the map for that number by finding it in the backlight
> > color table: here the fourth, #f0f0f0. Its backlight value is then 4
> > (since 0 is for "no backlighting").
>
> Tony,
>
> Thanks!  I may be confused, but I was trying to relate this s to the s in
> the 32 bit style mask--quoting from an earlier email (attribution not
> correct):
>
> > > /* If you use both 32-Bit Style mask layout:
> > >    Bits
> > > +----------------+----------------+----------------+----------------+
> > > |1F1E1D1C1B1A1918|1716151413121110| F E D C B A 9 8| 7 6 5 4 3 2 1 0|
> > > |3130292827262524|2322212019181716|151413121110 9 8| 7 6 5 4 3 2 1 0|
> > > +----------------+----------------+----------------+----------------+
> > > |             r r| r r r r b b b b| b b b b H 1 2 F| s s s s s s s s|
> > > +----------------+----------------+----------------+----------------+
> >
...
>
> I thought the 8 bits marked s in your diagram above, which come from "the
> style buffer entry of a position" would be related somehow to the  class
> string s mentioned at the top part of this email?

No. The s above refers to the variable in the function where the
backlighting comment occurs. The backlighting value is encoded as the
sequence of b bits in the style value. Backlighting has (almost) nothing
to do with syntax highlighting. I added it to look at binary output from
programs using a character based protocol, to make control characters
stand out. It also allowed the coloring of simple (single character
encoded) xpm "pixmap" files, and writing it led the way to the rangesets
extension. The whole point was to be able to avoid having to set up
syntax highlighting!

Tony

-- 
NEdit Develop mailing list - [email protected]
http://www.nedit.org/mailman/listinfo/develop

Reply via email to