Odd, I tried it out on every theme in Leo's theme directory and highlighting showed up on all of them, even the darkest. An earlier version didn't show on very dark themes, so I changed the way the highlight color is calculated.
Well, we'll get that sorted out. I agree, it would be better for 6.5 instead of trying to get something so new into 6.4. I have a technical question. The code I'm using gets the fg and bg colors from *c.active_stylesheet*. Can this ever change during a Leo session? I would rather do it once during initialization than each time the cursor moves. It seems to me that the active stylesheet won't change unless the theme is changed, but currently the theme can't be changed without closing Leo and restarting. On Saturday, August 28, 2021 at 11:30:50 AM UTC-4 Edward K. Ream wrote: > On Fri, Aug 27, 2021 at 4:36 PM [email protected] <[email protected]> > wrote: > >> The attached Leo outline contains a script to highlight the line in the >> body that has the cursor. You can activate it by selecting the top-most >> node, then pressing CTRL-b. > > > Thanks for this work. I didn't see any highlighting, but then I'm using a > dark theme. > > I'd like to add this feature early in the 6.5 development cycle. I would > rather not complicate the 6.4 release work. > > Edward > -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/leo-editor/f7ee81c2-8205-48ee-a031-c9c062dc3d88n%40googlegroups.com.
