unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "stephan.zimmer" <stephan.zimmer@googlemail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Text highlighter functiontionality
Date: Fri, 24 Jul 2009 08:44:04 -0700 (PDT)	[thread overview]
Message-ID: <e96229b5-981a-49fa-8b65-31b163569e1e@h18g2000yqj.googlegroups.com> (raw)
In-Reply-To: mailman.3039.1248365904.2239.help-gnu-emacs@gnu.org

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.


  parent reply	other threads:[~2009-07-24 15:44 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-23 11:44 Text highlighter functiontionality stephan.zimmer
2009-07-23 12:25 ` Teemu Likonen
2009-07-23 12:47   ` Lennart Borgman
2009-07-23 16:18     ` Drew Adams
     [not found]     ` <mailman.3039.1248365904.2239.help-gnu-emacs@gnu.org>
2009-07-24 15:44       ` stephan.zimmer [this message]
2009-07-24 17:03         ` Thierry Volpiatto

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e96229b5-981a-49fa-8b65-31b163569e1e@h18g2000yqj.googlegroups.com \
    --to=stephan.zimmer@googlemail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).