help-nano
[Top][All Lists]
Advanced

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

Re: Syntax Coloring in Restricted Mode


From: Jafar Al-Gharaibeh
Subject: Re: Syntax Coloring in Restricted Mode
Date: Mon, 5 Oct 2020 10:41:51 -0500

On Mon, Oct 5, 2020 at 4:40 AM Benno Schulenberg <bensberg@telfort.nl> 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


reply via email to

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