Re: Syntax Coloring in Restricted Mode

Jafar Al-Gharaibeh <[email protected]> Mon, 5 Oct 2020 10:41:51 -0500
Newsgroups gmane.editors.nano.general
Message-ID <CABvuv3iH17UNBv=AbKt+=0rQGXtsiUtfXVGiHdPiWRwFfmzqGQ@mail.gmail.com>
On Mon, Oct 5, 2020 at 4:40 AM Benno Schulenberg <[email protected]>
wrote:

>
> Op 03-10-2020 om 15:44 schreef Jafar Al-Gharaibeh:
> >    Is there a way to use nano in restricted mode but still do syntax
> coloring?
>
> Out of curiosity: in what scenario are you using a restricted nano?
>

We have a product where we want the end user to be able to view/edit a few
files but nothing else, exactly what restricted mode is designed to do. We
already have a "restricted"  shell that restricts what the user can and
can't do, rnano fits in perfectly with the use case.


> You may find --rcfile=... (since version 4.8) useful in that scenario,
> to load syntax files and set parameters but disallow the user changing
> any settings.
>

Is --rcfile meant to be used in addition to -R ? i.e restricted and with
custom configs ?

I did look at the sources yesterday and noticed the version is up to  5.2,
might as well go with the latest version if I'm building from sources.
Debian already has everything setup for 5.2

    https://salsa.debian.org/debian/nano/

Building a debian package should be straightforward.

Thanks for the great work Benno,

Regards,
Jafar