nano-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Nano-devel] feature request -- shaded groups of lines


From: Michael Williamson
Subject: Re: [Nano-devel] feature request -- shaded groups of lines
Date: Fri, 23 Mar 2018 11:28:18 -0700

No, I don't know of any editors that have such a feature.

Thanks for your suggestion. I realize now that another, probably
better way to do it is to simply
configure the X-terminal window to use a background image of horizontal stripes.

-Mike



On 3/22/18, Benno Schulenberg <address@hidden> wrote:
>
> Op 20-03-18 om 23:04 schreef Michael Williamson:
>> It would be helpful for me sometimes if nano could highlight
>> horizontally,
>> with background shading, groups of 3 or 4 rows alternating with
>> un-highlighted
>> groups of rows. That would make it easier to scan across tables of
>> numbers,
>> for example.
>
> Interesting.  Do you know of any other editor that has a similar feature?
>
> But, if it's only sometimes that you need this feature, you can help
> yourself.  First add the following two lines to your ~/.nanorc:
>
> syntax table
> color ,blue "^:.*"
>
> Then open the file that contains your tabular data:
>
>   nano  --syntax=table  yourdata
>
> and type:
>   M-\  M-:  - <Left> <Down> - <Left> <Down> - <Left> <Down>
>   : <Left> <Down> : <Left> <Down> : <Left> <Down>  M-:
> followed by a series of M-; until you reach end of file.
>
> (It's not the same as a background hue over the full width of the
> screen, but when your table is well-filled, it goes a long way.)
>
> When you're done editing your data, you remove the extra characters:
>   M-R M-R ^. <Enter> <Enter> A ^S ^X
>
> Instead of defining the macro and doing the replacements by hand,
> you could bind two keys to strings with the relevant commands.
>
> Benno
>
>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]