AW: Highlight current line
Ludger.Papenkort at dlr.de
Ludger.Papenkort at dlr.de
Wed Nov 29 12:38:54 CET 2006
Hallo Michael,
thanx, it works for the actual line, but the idea was to highlight the cursor line and then move the cursor up and down and the highlightning goes also up and down.
I think, i will try the patch of Tony.
Thank You and bye,
Ludger Papenkort
-----Ursprüngliche Nachricht-----
Von: discuss-bounces at nedit.org [mailto:discuss-bounces at nedit.org] Im Auftrag von Michael Smith
Gesendet: Mittwoch, 29. November 2006 11:53
An: discuss at nedit.org
Betreff: RE: Highlight current line
On Wed, 29 Nov 2006 11:27:39 +0100
<Ludger.Papenkort at dlr.de> wrote:
> Hallo,
>
> how is it possible to highlight the current line ?
>
> Sometimes it is very usefull to highlight the line where the cursor is.
> This feature would help to compare the text (numbers, tables or what
> else) in the editor window with original text written on paper. You
> could go through the text line by line with the cursor-down-key an
> compare the highlighted line with the original.
>
> Is there a possibility to do that with a macro ?
Yes
define select_line
{
start = search("\n",$cursor,"backward")
end = search("\n",$cursor,"forward")
select(start + 1,end + 1)
}
It could do with some refinement though. I don't think it works well on the first or last line of a file.
No doubt others will post improved versions from their own collections shortly :)
--
Michael Smith
Network Applications
www.netapps.com.au | +61 (0) 416 062 898
Web Hosting | Internet Services
More information about the Discuss
mailing list