Highlighting arbitrary bits of text

Greg Edwards <[email protected]> Tue, 15 Feb 2011 13:13:20 +1100
Newsgroups gmane.editors.nedit.user
Message-ID <[email protected]>
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

Example:

if (whatever) {
  $var[1] = 123;
  $var[3] = "abc";  # need to change this in many similar blocks further
down
  $var[5] = 456;
  $var[7] = "xyz";  # need to change this in many similar  blocks further
down
  $var[9] = "789;
}

.... (most likely split nedit screen here) ...

if(whatever2) {
  $var[1] =  etc etc


The red text above is an example of highlighting required. This would be
temporary, and disappear on command or when saving file.

Any suggestions appreciated.

Rgds,

-- 
Greg Edwards
[email protected]
-- 
NEdit Discuss mailing list - [email protected]
http://www.nedit.org/mailman/listinfo/discuss