Re: Highlighting arbitrary bits of text

Tony Balinski <[email protected]> Tue, 15 Feb 2011 08:17:48 +0100
Newsgroups gmane.editors.nedit.user
Message-ID <[email protected]>

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