[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Text highlighter functiontionality
From: |
stephan.zimmer |
Subject: |
Re: Text highlighter functiontionality |
Date: |
Fri, 24 Jul 2009 08:44:04 -0700 (PDT) |
User-agent: |
G2/1.0 |
Many thanks for all of your answers.
> But if you want to mark a region and highlight it you could use a simple
> function to create an overlay. Here's an example function which
> highlights current active region. You can remove the highlighting by
> just editing text inside it.
This sounds pretty much like what I need. Currently I'm slightly
extending Teemu's function in such a way that I can also deselect
parts of a selection. My ultimate plan is to add a toggle function,
which would allow to select and deselect arbitrary portions of text
with one function. If that turns out to be interesting for more of you
I will post the code.