RE: Highlighting arbitrary bits of text

<[email protected]> Tue, 15 Feb 2011 12:48:44 +0100
Newsgroups gmane.editors.nedit.user
Message-ID <4AD9C85CA8D92B48ACBCDD0979EF0A457C89C59AC6@EMEXM3123.dir.svc.accenture.com>

As an alternative to Tony's perfectly sensible response, you might like to look at the stuff about Calltips in the documentation.
(http://www.nedit.org/ftp/contrib/misc/nedit.pdf)
They would seem to allow you to achieve the effect you wish, albeit in a different way.
Which is better will depend on a number of factors, like how much effort you wish to put in, how dynamic the information is, personal preference, etc.

Have fun,
Evan




Communications with Accenture or any of its group companies ("Accenture Group") including telephone calls and emails (including content), may be monitored by our systems for the purposes of security and the assessment of internal compliance with company policy.  Accenture Group does not accept service by e-mail of court proceedings, other processes or formal notices of any kind.

Accenture means Accenture (UK) Limited (registered number 4757301), Accenture Technology Solutions Limited (registered number 4442596), or Accenture HR Services Limited (registered number 3957974), all registered in England and Wales with registered addresses at 30 Fenchurch Street, London EC3M 3BD, as the case may be.



-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Tony Balinski
Sent: 2011-02-15 07:18
To: General NEdit discussion list
Subject: Re: Highlighting arbitrary bits of text



On 15 Feb 2011, at 03:13, Greg Edwards <[email protected]> wrote:

> Folks,
>
> I haven't researched this properly, apologies if it's obvious, or
> obviously
> impossible :=)
>
> I'd like to be able to highlight, in some colour or some background,
> some
> small pieces of code in a program being edited with Nedit, to server
> as
> reference and reminder for editing/checking/changing some other
> similar code
> further down in a file. This seems to be in the domain of highlighting
> syntax, but it's not constant highlighting of a set syntax style. I
> just
> want to sweep over some bits of code and highlight them somehow, and
> have
> them stay highlighted until further notice
(Sorry for the empty reply earlier: finger slipped over the iphone.)
This is what rangesets are for. You need to provide a macro that will
create a rangeset and provide ranges (start and end positions) for it.
You can also give it a color and a name. You can also write macros to
jump to a range in the set, add a searched string's occurrences to a
set etc. Look in nedit's help windows for more info; various people
have macro collections for this sort of thing too.
Tony
--
NEdit Discuss mailing list - [email protected]
http://www.nedit.org/mailman/listinfo/discuss


This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information.  If you have received it in error, please notify the sender immediately and delete the original.  Any other use of the email by you is prohibited.
-- 
NEdit Discuss mailing list - [email protected]
http://www.nedit.org/mailman/listinfo/discuss