I
I´ve created my own nanorc with sytax highlighting in config files ( e.g. make.con, xorg.conf, sudoers ......) as I found the default doesn´t do that. So I add my nanorc to this Bug and I think it would be great to have something like this in the default nanorc which comes with Gentoo. Notice: - there are 2 nanorc added, one is optimised for white and one for black background. - In there, there is a little sektion called "D U M M Y Ruleset". It contains just a little exsamles for creating own Rulesets, this maybe fits in man nanorc ! ?? Last but not least I´ve a little suggestion/question. In my opinion the feature : ## Don't wrap text at all set nowrap is a must have one. Per default nano-editor.org disables _all_ features. Is it possible / does it make sense to _enable_ this one in Gentoo per default ? OK that´s it. bye Reproducible: Always Steps to Reproduce: 1.cp nanorc_white.bg /etc/nanorc 2.nano foo.conf 3.have fun ;-) Actual Results: It opens nano with a great Syntaxhighlighting Expected Results: ui ahmm .... don´t know
Created attachment 36233 [details] nanorc optimised for white background
Created attachment 36234 [details] nanorc optimised for black background
i'm not going to change the default for line wrapping ... you can do that yourself via nanorc option, running nano with -w, or hitting meta+l while in nano ... a lot of people like it ;) i'll take a look at the other things in a bit
OK full ACK This is the difference between personal taste and responsibility for a whole distribution.
I would like to request removing out-of-the-box syntax colouring from nano completely. Unless you have the right colour background on your terminals so you can see the colours that the author chose, it's just plain annoying. My preference would be to add a colour USE flag to nano (you can add other file types with default highlighting then), but chances are that's not going to happen, so can the syntax highlighting at least be commented out in /etc/nanorc by default. Users can always add them to ~/.nanorc if they don't want them overridden by config updates.
the default colors are disabled by default (except for gentoo highlighting) ive disabled those now again