Re: Need help changing the background colour for lines longer than X characters

From: phayz <russelldicken....at.gmail.com>
Date: Sun, 9 May 2010 17:59:31 -0700 (PDT)

On May 10, 10:01 am, Brian Schott <briancsch....at.gmail.com> wrote:
> On 05/09/10 16:54, phayz wrote:
>
> > I want the background colour of characters beyond X number of
> > characters to be different to that of the normal background colour. In
> > my theme's buffer.lua I have the following lines:
>
> > buffer.edge_column = 80
> > buffer.edge_mode = 2
> > buffer.edge_colour = #FF0000
>
> > If I understand correctly, this should give me bright red as the
> > background colour for all lines which have more than 80 characters on
> > them. However the background colour is a light grey instead. I have
> > tried several different colour strings but I don't see anything other
> > than a light grey background.
>
> > Can anyone help?
>
> Remember that the theme files are actually Lua code.
> # is the operator used for getting the length of a table.
>
> Try this for red:
> buffer.edge_colour = 0x0000ff
>
> The format for specifying colors directly in hex is 0xbbggrr.

Bingo! Thanks, Brian, for such a quick response and an explanation
that even I can understand. I have no idea why I chose to use this
colour specification format. I have modified the format and of course
it now works as expected.

Regards,

Russell Dickenson

-- 
You received this message because you are subscribed to the Google Groups "textadept" group.
To post to this group, send email to textadept.at.googlegroups.com.
To unsubscribe from this group, send email to textadept+unsubscribe.at.googlegroups.com.
For more options, visit this group at http://groups.google.com/group/textadept?hl=en.
Received on Sun 09 May 2010 - 20:59:31 EDT

This archive was generated by hypermail 2.2.0 : Thu 08 Mar 2012 - 11:45:16 EST